From 064acf0e5a6c07c393462392b4e1cbf2e86881d4 Mon Sep 17 00:00:00 2001 From: tac0turtle Date: Mon, 23 Feb 2026 15:25:30 +0100 Subject: [PATCH 1/2] ci: add workflow to auto-add issues to project board Co-Authored-By: Claude Opus 4.6 --- .github/workflows/add-to-project.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/add-to-project.yml diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml new file mode 100644 index 0000000..56a48bd --- /dev/null +++ b/.github/workflows/add-to-project.yml @@ -0,0 +1,15 @@ +name: Add to project + +on: + issues: + types: [opened] + +jobs: + add-to-project: + name: Add to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v1.0.2 + with: + project-url: https://github.com/orgs/evstack/projects/7 + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} From e10c1e7acc5f47323cb9a43fadb86615a11119bd Mon Sep 17 00:00:00 2001 From: tac0turtle Date: Mon, 23 Feb 2026 15:26:50 +0100 Subject: [PATCH 2/2] ci: set Area field to devx when adding issues to project Co-Authored-By: Claude Opus 4.6 --- .github/workflows/add-to-project.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index 56a48bd..5697c05 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -10,6 +10,29 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/add-to-project@v1.0.2 + id: add with: project-url: https://github.com/orgs/evstack/projects/7 github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} + + - name: Set Area to devx + env: + GH_TOKEN: ${{ secrets.ADD_TO_PROJECT_PAT }} + ITEM_ID: ${{ steps.add.outputs.itemId }} + run: | + # Get the field and option IDs for Area=devx + PROJECT_ID=$(gh project list --owner evstack --format json \ + | jq -r '.projects[] | select(.number==7) | .id') + + FIELD_ID=$(gh project field-list "$PROJECT_ID" --owner evstack --format json \ + | jq -r '.fields[] | select(.name=="Area") | .id') + + OPTION_ID=$(gh project field-list "$PROJECT_ID" --owner evstack --format json \ + | jq -r '.fields[] | select(.name=="Area") | .options[] | select(.name=="devx") | .id') + + gh project item-edit \ + --owner evstack \ + --project-number 7 \ + --id "$ITEM_ID" \ + --field-id "$FIELD_ID" \ + --single-select-option-id "$OPTION_ID"