Skip to content

Commit c534ac3

Browse files
authored
Merge pull request #46 from jideoyelayo1/trimmedjay-patch-1
2 parents c7a4d93 + d849bcb commit c534ac3

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.github/labeler.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# .github/labeler.yml
2+
3+
# Label PRs touching C++ source files
4+
cpp:
5+
- 'src/**/*.cpp'
6+
- 'ml_library_include/**/*.h'
7+
- 'ml_library_include/**/*.hpp'
8+
9+
# Label PRs touching documentation
10+
docs:
11+
- 'docs/**/*'
12+
- '**/*.md'
13+
14+
# Label PRs touching tests
15+
tests:
16+
- 'tests/**/*'
17+
18+
# Label PRs touching examples
19+
examples:
20+
- 'examples/**/*'
21+
22+
# Label PRs touching GitHub workflows
23+
ci:
24+
- '.github/workflows/**/*'
25+
26+

.github/workflows/auto-label.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# .github/workflows/auto-label.yml
2+
3+
name: Auto-Label PRs and Issues
4+
5+
on:
6+
issues:
7+
types: [opened]
8+
pull_request:
9+
types: [opened]
10+
11+
permissions:
12+
contents: read
13+
issues: write
14+
pull-requests: write
15+
16+
jobs:
17+
auto-label:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v3
23+
24+
- name: Auto-label
25+
uses: actions/labeler@v3
26+
with:
27+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)