Skip to content
Snippets Groups Projects
Commit 11b1b0ea authored by Rhys Arkins's avatar Rhys Arkins Committed by singapore
Browse files

fix: add missing await after findPr (#965)

parent 43e03a3b
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,11 @@ async function prAlreadyExisted(config) {
logger.debug('recreateClosed is false');
// Return if same PR already existed
// Check for current PR title format
const pr = config.api.findPr(config.branchName, config.prTitle, 'closed');
const pr = await config.api.findPr(
config.branchName,
config.prTitle,
'closed'
);
if (pr) {
logger.debug('Found closed PR with current title');
// this code exists to ignore mistakenly closed PRs which occurred due to a bug
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment