Skip to content

Commit

Permalink
fix(git-node): properly terminate pr landing sessions (#708)
Browse files Browse the repository at this point in the history
Fixes: #707
  • Loading branch information
anonrig authored Jun 14, 2023
1 parent 6477632 commit 015bf20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/landing_session.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export default class LandingSession extends Session {
const shouldContinue = await cli.prompt(
`This PR ${status} to land, do you want to continue?`, { defaultAnswer });
if (!shouldContinue) {
cli.setExitCode(1);
return this.abort(false);
await this.abort(false);
return process.exit(1);
}

this.saveMetadata(metadata);
Expand Down

0 comments on commit 015bf20

Please sign in to comment.