diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..6f58cff --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,27 @@ +"area: scripts": + - changed-files: + - any-glob-to-any-file: "scripts/**" + +"area: agents": + - changed-files: + - any-glob-to-any-file: ".claude/agents/**" + +"area: skills": + - changed-files: + - any-glob-to-any-file: ".claude/skills/**" + +"area: ci-cd": + - changed-files: + - any-glob-to-any-file: ".github/workflows/**" + +"area: templates": + - changed-files: + - any-glob-to-any-file: "templates/**" + +"area: docs": + - changed-files: + - any-glob-to-any-file: "docs/**" + +"area: pipeline": + - changed-files: + - any-glob-to-any-file: ".claude/pipeline.config.json" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..63c378b --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,21 @@ +name: Label PRs + +on: + pull_request: + types: [opened, synchronize, reopened] + +permissions: + contents: read + pull-requests: write + +jobs: + label: + name: Apply Area Labels + runs-on: ubuntu-latest + timeout-minutes: 2 + steps: + - uses: actions/labeler@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + configuration-path: .github/labeler.yml + sync-labels: true