File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 13
13
- name : Add issue to project
14
14
env :
15
15
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
16
- PROJECT_ID : ${{ secrets.DEV_PROJECT_ID }} # Set this in your repository secrets
16
+ DEV_PROJECT_ID : ${{ secrets.DEV_PROJECT_ID }} # Set this in your repository secrets
17
17
run : |
18
- issue_number=${{ github.event.issue.number }}
19
- issue_node_id=$(gh api graphql -F owner='${{ github.repository_owner }}' -F name='${{ github.event.repository.name }}' -F issueNumber="$issue_number" -f query='
18
+ 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='
20
19
query ($owner: String!, $name: String!, $issueNumber: Int!) {
21
20
repository(owner: $owner, name: $name) {
22
21
issue(number: $issueNumber) {
25
24
}
26
25
}' -q .data.repository.issue.id)
27
26
28
- gh api graphql -F projectId=$PROJECT_ID -F contentId=$issue_node_id -f query='
27
+ gh api graphql -F projectId=$DEV_PROJECT_ID -F contentId=$issue_node_id -f query='
29
28
mutation ($projectId: ID!, $contentId: ID!) {
30
29
addProjectNextItem(input: {projectId: $projectId, contentId: $contentId}) {
31
30
projectNextItem {
You can’t perform that action at this time.
0 commit comments