Skip to content

Commit

Permalink
fix: display the correct amount of remaining time for fast-tracked PR…
Browse files Browse the repository at this point in the history
…s (#581)
  • Loading branch information
renawolford6 committed Oct 31, 2021
1 parent a731dc7 commit 340e26e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pr_checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class PRChecker {
if (timeLeftSingle < 0) {
return true;
}
timeLeftMulti = timeLeftMulti < 0 ? 0 : timeLeftMulti;
timeLeftMulti = timeLeftMulti < 0 || isFastTracked ? 0 : timeLeftMulti;
cli.error(`This PR needs to wait ${timeLeftSingle} more hours to land ` +
`(or ${timeLeftMulti} hours if there is one more approval)`);
return false;
Expand Down

0 comments on commit 340e26e

Please sign in to comment.