ci: add auto-project workflow for issue tracking

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 <noreply@anthropic.com>
This commit is contained in:
Snider 2026-01-31 21:49:30 +00:00
parent 3c3d7c6eb4
commit 57d6d92392

33
.github/workflows/auto-project.yml vendored Normal file
View file

@ -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 }}