From 57d6d92392dbb837328e2932c4937326feca115a Mon Sep 17 00:00:00 2001 From: Snider Date: Sat, 31 Jan 2026 21:49:30 +0000 Subject: [PATCH] ci: add auto-project workflow for issue tracking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatically adds issues to org projects based on labels: - agentic → Workstation - lang:go → Core.GO & Core.CLI - scope:arch → Core.Framework Requires PROJECT_TOKEN org secret. Co-Authored-By: Claude Opus 4.5 --- .github/workflows/auto-project.yml | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/auto-project.yml diff --git a/.github/workflows/auto-project.yml b/.github/workflows/auto-project.yml new file mode 100644 index 00000000..bd160f0c --- /dev/null +++ b/.github/workflows/auto-project.yml @@ -0,0 +1,33 @@ +name: Auto-add to Project + +on: + issues: + types: [opened, labeled] + +permissions: + issues: read + +jobs: + add-to-project: + runs-on: ubuntu-latest + steps: + - name: Add to Workstation (agentic label) + if: contains(github.event.issue.labels.*.name, 'agentic') + uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/orgs/host-uk/projects/2 + github-token: ${{ secrets.PROJECT_TOKEN }} + + - name: Add to Core.GO (lang:go label) + if: contains(github.event.issue.labels.*.name, 'lang:go') + uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/orgs/host-uk/projects/4 + github-token: ${{ secrets.PROJECT_TOKEN }} + + - name: Add to Core.Framework (scope:arch label) + if: contains(github.event.issue.labels.*.name, 'scope:arch') + uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/orgs/host-uk/projects/1 + github-token: ${{ secrets.PROJECT_TOKEN }}