Skip to content
Snippets Groups Projects
Commit 0552900d authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix: add missing await to getBranchPr call (#986)

Closes #983
parent 01211f11
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ async function tryBranchAutomerge(config) { ...@@ -8,7 +8,7 @@ async function tryBranchAutomerge(config) {
if (!config.automerge || config.automergeType === 'pr') { if (!config.automerge || config.automergeType === 'pr') {
return 'no automerge'; return 'no automerge';
} }
const existingPr = config.api.getBranchPr(config.branchName); const existingPr = await config.api.getBranchPr(config.branchName);
if (existingPr) { if (existingPr) {
return 'automerge aborted - PR exists'; return 'automerge aborted - PR exists';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment