Skip to content

Commit

Permalink
chore: another try
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke authored Dec 11, 2024
1 parent d074e9e commit dabaaf4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/99-add-issue-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ jobs:
- name: Add issue to project
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PROJECT_ID: ${{ secrets.DEV_PROJECT_ID }} # Set this in your repository secrets
DEV_PROJECT_ID: ${{ secrets.DEV_PROJECT_ID }} # Set this in your repository secrets
run: |
issue_number=${{ github.event.issue.number }}
issue_node_id=$(gh api graphql -F owner='${{ github.repository_owner }}' -F name='${{ github.event.repository.name }}' -F issueNumber="$issue_number" -f query='
issue_node_id=$(gh api graphql -F owner='${{ github.repository_owner }}' -F name='${{ github.event.repository.name }}' -F issueNumber=${{ github.event.issue.number }} -f query='
query ($owner: String!, $name: String!, $issueNumber: Int!) {
repository(owner: $owner, name: $name) {
issue(number: $issueNumber) {
Expand All @@ -25,7 +24,7 @@ jobs:
}
}' -q .data.repository.issue.id)
gh api graphql -F projectId=$PROJECT_ID -F contentId=$issue_node_id -f query='
gh api graphql -F projectId=$DEV_PROJECT_ID -F contentId=$issue_node_id -f query='
mutation ($projectId: ID!, $contentId: ID!) {
addProjectNextItem(input: {projectId: $projectId, contentId: $contentId}) {
projectNextItem {
Expand Down

0 comments on commit dabaaf4

Please sign in to comment.