From 82d7252e489eb1a00b302d7e069b18f0bf495b63 Mon Sep 17 00:00:00 2001 From: Paul Mulligan Date: Thu, 9 Apr 2026 16:35:47 -0400 Subject: [PATCH] feat: add automatic PR labeling workflow Add actions/labeler workflow that applies area labels to PRs based on changed file paths. Maps scripts, agents, skills, workflows, templates, docs, and pipeline config to their corresponding area labels. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/labeler.yml | 27 +++++++++++++++++++++++++++ .github/workflows/labeler.yml | 21 +++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml 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