ci: replace project-board workflow with shared kanban workflow

This commit is contained in:
Tim Möhlmann committed 2026-07-20 22:04:04 +07:00
1 parent 62e56e085c
commit 20d4db9ed2
1 file changed
+14 -33
+14 -33
View File
@@ -1,4 +1,4 @@
name: Add new issues to product management project
name: Add new issues and PRs to kanban project
on:
issues:
@@ -8,36 +8,17 @@ on:
types:
- opened
permissions:
contents: read
jobs:
add-to-project:
name: Add issue and community pr to project
runs-on: ubuntu-latest
steps:
- name: add issue
uses: actions/add-to-project@v1.0.1
if: ${{ github.event_name == 'issues' }}
with:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/orgs/zitadel/projects/2
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
- uses: tspascoal/get-user-teams-membership@v3
id: checkUserMember
if: github.actor != 'dependabot[bot]'
with:
username: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.ADD_TO_PROJECT_PAT }}
- name: add pr
uses: actions/add-to-project@v1.0.1
if: ${{ github.event_name == 'pull_request_target' && github.actor != 'dependabot[bot]' && !contains(steps.checkUserMember.outputs.teams, 'engineers')}}
with:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/orgs/zitadel/projects/2
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
- uses: actions-ecosystem/action-add-labels@v1.1.3
if: ${{ github.event_name == 'pull_request_target' && github.actor != 'dependabot[bot]' && !contains(steps.checkUserMember.outputs.teams, 'staff')}}
with:
github_token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labels: |
os-contribution
add-to-kanban:
name: Add issue/PR to kanban
if: github.actor != 'dependabot[bot]'
uses: zitadel/.github/.github/workflows/kanban.yml@main
secrets:
PROJECT_APP_ID: ${{ secrets.PROJECT_APP_ID }}
PROJECT_APP_PRIVATE_KEY: ${{ secrets.PROJECT_APP_PRIVATE_KEY }}
with:
issue_url: ${{ github.event_name == 'issues' && github.event.issue.html_url || '' }}
pr_url: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.html_url || '' }}