diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..649d4ac --- /dev/null +++ b/.github/labeler.yml @@ -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/**/*' + + diff --git a/.github/workflows/auto-label.yml b/.github/workflows/auto-label.yml new file mode 100644 index 0000000..619b6af --- /dev/null +++ b/.github/workflows/auto-label.yml @@ -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 }}