From 13584c6f6372bca17b839f6a4f954a18ca626f06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Thu, 25 Jun 2026 12:59:54 +0700 Subject: [PATCH 1/2] ci: add Engineering Kanban shared workflow --- .github/workflows/kanban.yml | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/kanban.yml diff --git a/.github/workflows/kanban.yml b/.github/workflows/kanban.yml new file mode 100644 index 0000000..a3cbb1e --- /dev/null +++ b/.github/workflows/kanban.yml @@ -0,0 +1,54 @@ +name: Engineering Kanban (shared) + +on: + workflow_call: + inputs: + issue-url: + description: URL of the issue to add (empty string if not an issue event) + type: string + default: '' + pr-url: + description: URL of the PR to add (empty string if not a PR event) + type: string + default: '' + +permissions: + contents: read + +jobs: + add-to-project: + runs-on: ubuntu-latest + steps: + - name: Generate project app token + id: app-token + uses: actions/create-github-app-token@v2 + with: + app-id: ${{ secrets.PROJECT_APP_ID }} + private-key: ${{ secrets.PROJECT_APP_PRIVATE_KEY }} + owner: zitadel + + - name: Add issue to kanban + if: inputs.issue-url != '' + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + run: | + ITEM_ID=$(gh project item-add 15 --owner zitadel \ + --url "${{ inputs.issue-url }}" --format json | jq -r '.id') + gh project item-edit \ + --project-id "PVT_kwDOBCxI8c4Bbg8_" \ + --id "$ITEM_ID" \ + --field-id "PVTSSF_lADOBCxI8c4Bbg8_zhWQ9SY" \ + --single-select-option-id "2cd48e0f" + + - name: Add PR to kanban + if: inputs.pr-url != '' + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + run: | + ITEM_ID=$(gh project item-add 15 --owner zitadel \ + --url "${{ inputs.pr-url }}" --format json | jq -r '.id') + gh project item-edit \ + --project-id "PVT_kwDOBCxI8c4Bbg8_" \ + --id "$ITEM_ID" \ + --field-id "PVTSSF_lADOBCxI8c4Bbg8_zhWQ9SY" \ + --single-select-option-id "2cd48e0f" From 7dea492feac8edddf90332ba039cc77a0b1fc4ed Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 26 Jun 2026 06:40:07 +0000 Subject: [PATCH 2/2] ci: use underscore workflow inputs --- .github/workflows/kanban.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/kanban.yml b/.github/workflows/kanban.yml index a3cbb1e..a62acff 100644 --- a/.github/workflows/kanban.yml +++ b/.github/workflows/kanban.yml @@ -3,11 +3,11 @@ name: Engineering Kanban (shared) on: workflow_call: inputs: - issue-url: + issue_url: description: URL of the issue to add (empty string if not an issue event) type: string default: '' - pr-url: + pr_url: description: URL of the PR to add (empty string if not a PR event) type: string default: '' @@ -28,12 +28,12 @@ jobs: owner: zitadel - name: Add issue to kanban - if: inputs.issue-url != '' + if: inputs.issue_url != '' env: GH_TOKEN: ${{ steps.app-token.outputs.token }} run: | ITEM_ID=$(gh project item-add 15 --owner zitadel \ - --url "${{ inputs.issue-url }}" --format json | jq -r '.id') + --url "${{ inputs.issue_url }}" --format json | jq -r '.id') gh project item-edit \ --project-id "PVT_kwDOBCxI8c4Bbg8_" \ --id "$ITEM_ID" \ @@ -41,12 +41,12 @@ jobs: --single-select-option-id "2cd48e0f" - name: Add PR to kanban - if: inputs.pr-url != '' + if: inputs.pr_url != '' env: GH_TOKEN: ${{ steps.app-token.outputs.token }} run: | ITEM_ID=$(gh project item-add 15 --owner zitadel \ - --url "${{ inputs.pr-url }}" --format json | jq -r '.id') + --url "${{ inputs.pr_url }}" --format json | jq -r '.id') gh project item-edit \ --project-id "PVT_kwDOBCxI8c4Bbg8_" \ --id "$ITEM_ID" \