Skip to content

Remove CoPilot and bots from review checks#101

Merged
adcreare merged 2 commits intomainfrom
remove-copilot-from-required
Apr 30, 2026
Merged

Remove CoPilot and bots from review checks#101
adcreare merged 2 commits intomainfrom
remove-copilot-from-required

Conversation

@adcreare
Copy link
Copy Markdown
Contributor

Closes #100

@adcreare adcreare self-assigned this Apr 30, 2026
Copilot AI review requested due to automatic review settings April 30, 2026 07:14
@adcreare adcreare added the PATCH label Apr 30, 2026
@adcreare adcreare changed the title Remove bots any user called Copoilot from review checks Remove bots and user called Copoilot from review checks Apr 30, 2026
@adcreare adcreare changed the title Remove bots and user called Copoilot from review checks Remove CoPilot and bots from review checks Apr 30, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the PR review-checking logic to ignore GitHub bots (and Copilot) when determining whether all requested reviewers have completed their reviews, aligning with issue #100.

Changes:

  • Filter listRequestedReviewers() results to exclude bots/Copilot from the “outstanding reviewers” count.
  • Add a nock fixture + unit test for the Copilot/bot reviewer scenario.
  • Bump package version to 4.0.3 (and update lockfile accordingly).

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/github-api/index.ts Adds isHumanReviewer and filters requested reviewers before counting outstanding reviewers.
src/nocks/github.test.ts Adds mocked /requested_reviewers response including a bot/Copilot reviewer.
src/github-api/index-reviews.spec.ts Adds a test asserting Copilot/bot is ignored in outstanding reviewer counts.
package.json Bumps package version from 4.0.2 to 4.0.3.
package-lock.json Updates lockfile to match the new package version and current dependency metadata.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/nocks/github.test.ts
Comment on lines +92 to +102
users: [
{
login: 'bob',
type: 'User',
},
{
login: 'Copilot',
type: 'Bot',
},
],
}));
Copy link
Copy Markdown
Contributor Author

@adcreare adcreare Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, validate the other path in a test. This resolves the other comments too.

Comment thread src/github-api/index.ts
Comment thread src/github-api/index-reviews.spec.ts Outdated
@github-actions
Copy link
Copy Markdown

Coverage after merging remove-copilot-from-required into main will be

95.95%▴ +0.02%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src/check-imports
   package-lock-file-util.spec.ts100%100%100%100%
   package-lock-file-util.ts100%100%100%100%
   packages-not-allowed.spec.ts83.33%100%66.67%83.33%13–15
   packages-not-allowed.ts100%100%100%100%
src/check-label
   check-label-compare-match-semver.spec.ts100%100%100%100%
   check-label.spec.ts100%100%100%100%
   check-label.ts95.08%90%100%95.96%68–70, 78–80
src/check-pr-reviews
   check-pr-reviews.spec.ts100%100%100%100%
   check-pr-reviews.ts50.65%40%100%50.70%22–37, 41–59, 68–70
src/coverage-reporter
   html.spec.ts100%100%100%100%
   html.ts100%100%100%100%
   lcov.spec.ts100%100%100%100%
   lcov.ts93.56%90.91%80%94.29%121–131, 138
   tabulate.spec.ts100%100%100%100%
   tabulate.ts99.61%98.04%100%100%179
   util.spec.ts100%100%100%100%
   util.ts100%100%100%100%
src/github-api
   index-context.spec.ts100%100%100%100%
   index-publish-comment.spec.ts100%100%100%100%
   index-reviews.spec.ts100%100%100%100%
   index.spec.ts100%100%100%100%
   index.ts82.98%70.77%100%84.70%61, 70, 77–81, 98–103, 108–111, 126–128, 146–149, 179–184, 204–213, 233–236, 241–244, 263–266, 271–274, 285–288, 299–301, 309–311, 313–316, 338–340
src/prepare-beta
   package.spec.ts100%100%100%100%
   package.ts94.12%75%100%95.56%23–25
src/publish-beta
   files.spec.ts100%100%100%100%
   files.ts94.03%92.31%100%94%36–39
   package.spec.ts100%100%100%100%
   package.ts95.38%85.71%100%96.36%23–25
   publish.spec.ts100%100%100%100%
   publish.ts85.37%100%50%86.11%32–36
   validate-name-and-resource-length.spec.ts100%100%100%100%
   validate-name-and-resource-length.ts89.13%100%71.43%88.07%35–40, 103–109
src/validate-npm-package
   validate-npm-package.spec.ts91.45%72.22%100%94.25%21–22, 35–36, 50–51, 65–66, 81–82
   validate-npm-package.ts95.80%85.71%100%96.77%56, 111–115

@adcreare adcreare requested a review from ramaghanta April 30, 2026 07:40
Copy link
Copy Markdown
Contributor

@ramaghanta ramaghanta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lftm

@adcreare adcreare merged commit b55e3bb into main Apr 30, 2026
6 of 7 checks passed
@adcreare adcreare deleted the remove-copilot-from-required branch April 30, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove copilot from check pr reviews

3 participants