Skip to content

Commit 90d48b4

Browse files
Adding auto-adding to Project
1 parent 8093dec commit 90d48b4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Project automation
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
add_issue_to_project:
10+
name: Add new issues to project board
11+
runs-on: ubuntu-latest
12+
steps:
13+
- run: |
14+
gh api graphql -f query='mutation($project:ID!, $issue:ID!) { addProjectNextItem(input: {projectId: $project, contentId: $issue}) { projectNextItem { id } } }' -f project=${{ secrets.PROJECT_BOARD_ID }} -f issue=${{ github.event.issue.node_id }}
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.PROJECT_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)