Skip to content

Commit 015bf20

Browse files
authored
fix(git-node): properly terminate pr landing sessions (#708)
Fixes: #707
1 parent 6477632 commit 015bf20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/landing_session.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ export default class LandingSession extends Session {
6262
const shouldContinue = await cli.prompt(
6363
`This PR ${status} to land, do you want to continue?`, { defaultAnswer });
6464
if (!shouldContinue) {
65-
cli.setExitCode(1);
66-
return this.abort(false);
65+
await this.abort(false);
66+
return process.exit(1);
6767
}
6868

6969
this.saveMetadata(metadata);

0 commit comments

Comments
 (0)