Skip to content

Commit

Permalink
fix(git-node): ignore codecov check suite (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedYetiDev authored Aug 7, 2024
1 parent 25ea992 commit d796dd5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/pr_checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const GITHUB_SUCCESS_CONCLUSIONS = ['SUCCESS', 'NEUTRAL', 'SKIPPED'];
const FAST_TRACK_RE = /^Fast-track has been requested by @(.+?)\. Please 👍 to approve\.$/;
const FAST_TRACK_MIN_APPROVALS = 2;
const GIT_CONFIG_GUIDE_URL = 'https://github.com/nodejs/node/blob/99b1ada/doc/guides/contributing/pull-requests.md#step-1-fork';
const IGNORED_CHECK_SLUGS = ['dependabot', 'codecov'];

// eslint-disable-next-line no-extend-native
Array.prototype.findLastIndex ??= function findLastIndex(fn) {
Expand Down Expand Up @@ -373,9 +374,9 @@ export default class PRChecker {

// GitHub new Check API
for (const { status, conclusion, app } of checkSuites.nodes) {
if (app && app.slug === 'dependabot') {
// Ignore Dependabot check suites. They are expected to show up
// sometimes and never complete.
if (app && IGNORED_CHECK_SLUGS.includes(app.slug)) {
// Ignore Dependabot and Codecov check suites.
// They are expected to show up sometimes and never complete.
continue;
}

Expand Down

0 comments on commit d796dd5

Please sign in to comment.