Skip to content

Commit f28ec2d

Browse files
authored
fix: display the correct amount of remaining time for fast-tracked PRs (#581)
1 parent 7d9e7f0 commit f28ec2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pr_checker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class PRChecker {
196196
if (timeLeftSingle < 0) {
197197
return true;
198198
}
199-
timeLeftMulti = timeLeftMulti < 0 ? 0 : timeLeftMulti;
199+
timeLeftMulti = timeLeftMulti < 0 || isFastTracked ? 0 : timeLeftMulti;
200200
cli.error(`This PR needs to wait ${timeLeftSingle} more hours to land ` +
201201
`(or ${timeLeftMulti} hours if there is one more approval)`);
202202
return false;

0 commit comments

Comments
 (0)