From 99f86d6eeb635fdb530c7f87b55650d5054d61ab Mon Sep 17 00:00:00 2001 From: Rena Wolford Date: Tue, 2 Jun 2020 17:39:55 +0200 Subject: [PATCH] git-node: automatically remove temporary files (#429) Refs: https://github.com/nodejs/node-core-utils/issues/425 --- lib/landing_session.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/landing_session.js b/lib/landing_session.js index 38898c4..fc45c5e 100644 --- a/lib/landing_session.js +++ b/lib/landing_session.js @@ -255,15 +255,12 @@ class LandingSession extends Session { willBeLanded = `${head}...${willBeLanded}`; } + this.cleanFiles(); + cli.log('Temporary files removed'); cli.log('To finish landing:'); cli.log(`1. Run \`git push ${upstream} ${branch}\``); const url = `https://github.com/${owner}/${repo}/pull/${prid}`; cli.log(`2. Post "Landed in ${willBeLanded}" in ${url}`); - - const shouldClean = await cli.prompt('Clean up generated temporary files?'); - if (shouldClean) { - this.cleanFiles(); - } } async continue() {