Skip to content

Commit 16b5776

Browse files
committed
git-node: Clarify that the wait time is a *minimum* not a maximum.
1 parent 38fbb3e commit 16b5776

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/pr_checker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class PRChecker {
185185
const dateStr = new Date(pr.createdAt).toDateString();
186186
const type = wait.isWeekend ? 'weekend' : 'weekday';
187187
cli.info(`This PR was created on ${dateStr} (${type} in UTC)`);
188-
cli.warn(`${wait.timeLeft} hours left to land`);
188+
cli.warn(`Wait at least ${wait.timeLeft} more hours before landing`);
189189
return false;
190190
}
191191

test/unit/pr_checker.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ describe('PRChecker', () => {
169169
const cli = new TestCLI();
170170

171171
const expectedLogs = {
172-
warn: [['49 hours left to land']],
172+
warn: [['Wait at least 49 more hours before landing']],
173173
info: [['This PR was created on Sat Oct 28 2017 (weekend in UTC)']]
174174
};
175175

@@ -201,7 +201,7 @@ describe('PRChecker', () => {
201201
const cli = new TestCLI();
202202

203203
const expectedLogs = {
204-
warn: [['22 hours left to land']],
204+
warn: [['Wait at least 22 more hours before landing']],
205205
info: [['This PR was created on Tue Oct 31 2017 (weekday in UTC)']]
206206
};
207207

0 commit comments

Comments
 (0)