From 9eabd4c81166990ba6b6c2778a3bce2f91c75ec3 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 31 Mar 2025 14:12:10 +0200 Subject: [PATCH] fix(ncu-ci): fetch commits instead of PR metadata --- lib/ci/run_ci.js | 2 +- lib/pr_checker.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ci/run_ci.js b/lib/ci/run_ci.js index 0c79b99b..1561030b 100644 --- a/lib/ci/run_ci.js +++ b/lib/ci/run_ci.js @@ -26,7 +26,7 @@ export class RunPRJob { this.prData = new PRData({ prid, owner, repo }, cli, request); this.certifySafe = certifySafe || - Promise.all([this.prData.getReviews(), this.prData.getPR()]).then(() => + Promise.all([this.prData.getReviews(), this.prData.getCommits()]).then(() => (this.certifySafe = new PRChecker(cli, this.prData, request, {}).getApprovedTipOfHead()) ); } diff --git a/lib/pr_checker.js b/lib/pr_checker.js index 8fff6b32..8ce2f31d 100644 --- a/lib/pr_checker.js +++ b/lib/pr_checker.js @@ -531,7 +531,7 @@ export default class PRChecker { const { maxCommits } = argv; if (commits.length === 0) { - cli.warn('No commits found'); + cli.warn('No commits detected'); return false; }