Skip to content

Commit af52aa3

Browse files
authored
fix(ncu-ci): fetch commits instead of PR metadata (#915)
1 parent 5ec915b commit af52aa3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: lib/ci/run_ci.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class RunPRJob {
2626
this.prData = new PRData({ prid, owner, repo }, cli, request);
2727
this.certifySafe =
2828
certifySafe ||
29-
Promise.all([this.prData.getReviews(), this.prData.getPR()]).then(() =>
29+
Promise.all([this.prData.getReviews(), this.prData.getCommits()]).then(() =>
3030
(this.certifySafe = new PRChecker(cli, this.prData, request, {}).getApprovedTipOfHead())
3131
);
3232
}

Diff for: lib/pr_checker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ export default class PRChecker {
531531
const { maxCommits } = argv;
532532

533533
if (commits.length === 0) {
534-
cli.warn('No commits found');
534+
cli.warn('No commits detected');
535535
return false;
536536
}
537537

0 commit comments

Comments
 (0)