fix(issue_opened_project)
fix(issue_opened_project)
This commit is contained in:
parent
103c530bb3
commit
b8087cb43c
1 changed files with 2 additions and 0 deletions
2
.github/workflows/issue_opened_project.yaml
vendored
2
.github/workflows/issue_opened_project.yaml
vendored
|
|
@ -13,6 +13,8 @@ jobs:
|
|||
run: |
|
||||
PROJECT_ID=$(gh api graphql -f query='query { repository(owner: "${{ github.repository_owner }}", name: "${{ github.event.repository.name }}") { projectV2(number: 1) { id } } }' --jq '.data.repository.projectV2.id')
|
||||
echo "PROJECT_ID=$PROJECT_ID" >> $GITHUB_ENV
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Add issue to project
|
||||
run: |
|
||||
gh api graphql -f query='mutation($project:ID!, $contentId:ID!) { addProjectV2ItemById(input: {projectId: $project, contentId: $contentId}) { item { id } } }' -f project=$PROJECT_ID -f contentId=$ISSUE_ID
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue