Skip to content

Commit

Permalink
fix: display the correct amount of remaining time for fast-tracked PRs (
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Oct 31, 2021
1 parent 7d9e7f0 commit f28ec2d
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 f28ec2d

Please sign in to comment.