Skip to content

Commit

Permalink
fix(automation): Automatically add new issues to GitHub Project (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkerkhove authored Feb 16, 2023
1 parent 812d00b commit cd0b599
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/auto-add-issues-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
id
fields(first:20) {
nodes {
id
name
settings
... on ProjectV2Field {
id
name
}
}
}
Expand All @@ -38,9 +38,9 @@ jobs:
run: |
item_id="$( gh api graphql -f query='
mutation($project:ID!, $issue:ID!) {
addProjectNextItem(input: {projectId: $project, contentId: $issue}) {
projectNextItem {
addProjectV2ItemById(input: {projectId: $project, contentId: $issue}) {
item {
id
}
}
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectNextItem.projectNextItem.id')"
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectV2ItemById.item.id')"

0 comments on commit cd0b599

Please sign in to comment.