Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# .github/labeler.yml

# Label PRs touching C++ source files
cpp:
- 'src/**/*.cpp'
- 'ml_library_include/**/*.h'
- 'ml_library_include/**/*.hpp'

# Label PRs touching documentation
docs:
- 'docs/**/*'
- '**/*.md'

# Label PRs touching tests
tests:
- 'tests/**/*'

# Label PRs touching examples
examples:
- 'examples/**/*'

# Label PRs touching GitHub workflows
ci:
- '.github/workflows/**/*'


27 changes: 27 additions & 0 deletions .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# .github/workflows/auto-label.yml

name: Auto-Label PRs and Issues

on:
issues:
types: [opened]
pull_request:
types: [opened]

permissions:
contents: read
issues: write
pull-requests: write

jobs:
auto-label:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Auto-label
uses: actions/labeler@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
Loading