Skip to content

Commit

Permalink
Fix pr automation workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Mar 31, 2021
1 parent 8d3e910 commit 531b15c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prauto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ jobs:
columns(first:10) { nodes {id,name} }
}
}
}' -F owner=:owner -F repo=:repo \
}' -f owner="${GH_REPO%/*}" -f repo="${GH_REPO#*/}" \
-q ".data.repository.project.columns.nodes[] | select(.name | startswith(\"$1\")) | .id"
}
addToBoard () {
gh api graphql --silent -f query='
mutation($colID:ID!, $pr:ID!) { addProjectCard(input: { projectColumnId: $colID, contentId: $prID }) { clientMutationId } }
mutation($colID:ID!, $prID:ID!) { addProjectCard(input: { projectColumnId: $colID, contentId: $prID }) { clientMutationId } }
' -f colID="$(colID "Needs review")" -f prID="$PRID"
}
Expand Down

0 comments on commit 531b15c

Please sign in to comment.