Skip to content

Commit

Permalink
Merge pull request #74 from zitadel/hifabienne-patch-2
Browse files Browse the repository at this point in the history
chore: update pm board action
  • Loading branch information
livio-a authored Feb 2, 2024
2 parents d35eae2 + 88cbddb commit 524a649
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,43 @@
name: Add new issues to kanban project
name: Add new issues to product management project

on:
issues:
types:
- opened
pull_request_target:
types:
- opened

jobs:
add-to-project:
name: Add issue to project
name: Add issue and community pr to project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: add issue
uses: actions/[email protected]
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
with:
username: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.ADD_TO_PROJECT_PAT }}
- name: add pr
uses: actions/[email protected]
if: ${{ github.event_name == 'pull_request_target' && !contains(steps.checkUserMember.outputs.teams, 'engineers') && github.actor != 'app/dependabot'}}
with:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/orgs/zitadel/projects/1
project-url: https://github.com/orgs/zitadel/projects/2
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
- uses: actions-ecosystem/[email protected]
if: ${{ github.event_name == 'pull_request_target' && !contains(steps.checkUserMember.outputs.teams, 'staff') && github.actor != 'app/dependabot'}}
with:
github_token: ${{ secrets.ADD_TO_PROJECT_PAT }}
labels: |
os-contribution
auth

0 comments on commit 524a649

Please sign in to comment.