Skip to content
Snippets Groups Projects
Commit bd5d7eed authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor(logs): rename autoclose log

parent 1be6c9f7
Branches
No related tags found
No related merge requests found
...@@ -44,10 +44,10 @@ async function pruneStaleBranches(config, branchList) { ...@@ -44,10 +44,10 @@ async function pruneStaleBranches(config, branchList) {
logger.info({ branch: branchName }, `Deleting orphan branch`); logger.info({ branch: branchName }, `Deleting orphan branch`);
const pr = await platform.findPr(branchName, null, 'open'); const pr = await platform.findPr(branchName, null, 'open');
if (pr) { if (pr) {
logger.info({ prNo: pr.number, prTitle: pr.title }, 'Autoclosing PR');
await platform.updatePr(pr.number, `${pr.title} - autoclosed`); await platform.updatePr(pr.number, `${pr.title} - autoclosed`);
} }
const closePr = true; const closePr = true;
await platform.deleteBranch(branchName, closePr); await platform.deleteBranch(branchName, closePr);
logger.info({ prNo: pr.number, prTitle: pr.title }, 'PR closed');
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment