adding missing github ref

This commit is contained in:
Adam Brown 2022-09-01 22:26:57 +01:00
parent 2b26b55557
commit 3a8e26579c
1 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ export const publishRelease = async (github, artifacts) => {
body: "Syncing changes from release", body: "Syncing changes from release",
}) })
await enablePrAutoMerge(createdPr.data.node_id) await enablePrAutoMerge(github, createdPr.data.node_id)
} }
const isWorkingBranchAhead = async (github) => { const isWorkingBranchAhead = async (github) => {
@ -89,10 +89,10 @@ const startRelease = async (github) => {
body: "todo", body: "todo",
}) })
await enablePrAutoMerge(createdPr.data.node_id) await enablePrAutoMerge(github, createdPr.data.node_id)
} }
const enablePrAutoMerge = async (prNodeId) => { const enablePrAutoMerge = async (github, prNodeId) => {
await github.graphql( await github.graphql(
` `
mutation ($pullRequestId: ID!, $mergeMethod: PullRequestMergeMethod!) { mutation ($pullRequestId: ID!, $mergeMethod: PullRequestMergeMethod!) {