Add Github action to add new issues to frontend project board
Added as part of https://github.com/vegaprotocol/token-frontend/issues/1057
This commit is contained in:
parent
dba238315a
commit
056d1f193d
26
.github/workflows/add_issue_new_projects.yml
vendored
Normal file
26
.github/workflows/add_issue_new_projects.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
|
||||
name: Auto Assign Issue to New Project
|
||||
|
||||
"on":
|
||||
issues:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
add_issue:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Add Issue to New Front End Project Board
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_NEW_CARD_TO_PROJECT }}
|
||||
PROJECT_ID: ${{ secrets.FRONT_END_PROJECT_ID }}
|
||||
ISSUE_ID: ${{ github.event.issue.node_id }}
|
||||
run: |
|
||||
gh api graphql -f query='
|
||||
mutation($project:ID!, $issue:ID!) {
|
||||
addProjectNextItem(input: {projectId: $project, contentId: $issue}) {
|
||||
projectNextItem {
|
||||
id
|
||||
}
|
||||
}
|
||||
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id'
|
Loading…
Reference in New Issue
Block a user