chore: update pm board action (#528)
* chore: update pm board action automatically ad prs of non engineers to board and label community prs * Update issue.yml
This commit is contained in:
parent
045b59e5a5
commit
2aa8a327f6
1 changed files with 27 additions and 2 deletions
29
.github/workflows/issue.yml
vendored
29
.github/workflows/issue.yml
vendored
|
@ -4,15 +4,40 @@ on:
|
||||||
issues:
|
issues:
|
||||||
types:
|
types:
|
||||||
- opened
|
- opened
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
add-to-project:
|
add-to-project:
|
||||||
name: Add issue to project
|
name: Add issue and community pr to project
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/add-to-project@v0.5.0
|
- name: add issue
|
||||||
|
uses: actions/add-to-project@v0.5.0
|
||||||
|
if: ${{ github.event_name == 'issues' }}
|
||||||
with:
|
with:
|
||||||
# You can target a repository in a different organization
|
# You can target a repository in a different organization
|
||||||
# to the issue
|
# to the issue
|
||||||
project-url: https://github.com/orgs/zitadel/projects/2
|
project-url: https://github.com/orgs/zitadel/projects/2
|
||||||
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
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/add-to-project@v0.5.0
|
||||||
|
if: ${{ github.event_name == 'pull_request_target' && !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.0
|
||||||
|
if: ${{ github.event_name == 'pull_request_target' && !contains(steps.checkUserMember.outputs.teams, 'staff')}}
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
||||||
|
labels: |
|
||||||
|
os-contribution
|
||||||
|
auth
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue