Skip to content

ci: configure copilot review to reduce noise#1064

Open
efiacor wants to merge 2 commits into
kptdev:mainfrom
Nordix:copilot_review_config
Open

ci: configure copilot review to reduce noise#1064
efiacor wants to merge 2 commits into
kptdev:mainfrom
Nordix:copilot_review_config

Conversation

@efiacor

@efiacor efiacor commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Description

  • What changed: Added .github/copilot-code-review.yml and .github/workflows/copilot-review.yaml
  • Why it's needed: Copilot auto-reviews on every push are creating excessive overhead for reviewers
  • How it works:
    • Config file scopes Copilot to skip generated/vendored code and linter-overlap issues, focus on real bugs
    • Workflow requests Copilot review only on PR open (not on every synchronize)
    • Manual re-request still available via GitHub UI

Related Issue(s)

Type of Change

  • Enhancement

Checklist

  • Code follows project style guidelines
  • Self-reviewed changes
  • Tests added/updated
  • Documentation added/updated
  • All tests and gating checks pass

Testing Instructions

  1. Disable automatic Copilot code review in repo settings (Settings → Copilot → Code review)
  2. Open a new PR — Copilot should be requested as reviewer once
  3. Push additional commits — Copilot should NOT be re-requested
  4. Verify Copilot comments respect the path exclusions and instruction constraints

Additional Notes

  • Requires a repo admin to disable automatic Copilot reviews in settings for the workflow trigger to be the sole mechanism
  • Manual /review or reviewer request still works for on-demand reviews after initial open

AI Disclosure

  • I have used AI in the creation of this PR.

If so, please describe how:

  • Kiro to draft the copilot-code-review.yml instructions and copilot-review.yaml workflow
  • The author has fully verified all code

- Add .github/copilot-code-review.yml with project-specific instructions:
  skip linter-overlap issues, generated code, vendored code, and style nits.
  Focus reviews on logic errors, concurrency, security, and K8s API correctness.
- Add workflow to request Copilot review only on PR open (not on every push).
  Manual re-request still available via GitHub UI.
- Requires disabling automatic Copilot reviews in repo settings.

Signed-off-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
@efiacor efiacor requested review from a team and Copilot June 19, 2026 09:30
@efiacor efiacor added the enhancement New feature or request label Jun 19, 2026
@efiacor efiacor self-assigned this Jun 19, 2026
@netlify

netlify Bot commented Jun 19, 2026

Copy link
Copy Markdown

Deploy Preview for kpt-porch ready!

Name Link
🔨 Latest commit eabb946
🔍 Latest deploy log https://app.netlify.com/projects/kpt-porch/deploys/6a351d10cce95700084de309
😎 Deploy Preview https://deploy-preview-1064--kpt-porch.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a repo-scoped Copilot Code Review configuration and a GitHub Actions workflow to reduce review noise by (1) constraining what Copilot comments on and (2) requesting Copilot review only when a PR is first opened (instead of on every push/update).

Changes:

  • Add .github/copilot-code-review.yml to scope Copilot review focus areas and exclude generated/vendored paths.
  • Add .github/workflows/copilot-review.yaml to request Copilot as a reviewer on pull_request opened.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/copilot-review.yaml Adds a workflow that requests Copilot review when a PR is opened.
.github/copilot-code-review.yml Adds Copilot review instructions and path-based exclusions to reduce noise.

Comment thread .github/workflows/copilot-review.yaml Outdated
Copilot AI review requested due to automatic review settings June 19, 2026 10:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread .github/workflows/copilot-review.yaml
Comment thread .github/workflows/copilot-review.yaml
Comment thread .github/copilot-code-review.yml
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
@efiacor efiacor force-pushed the copilot_review_config branch from 5cf161f to eabb946 Compare June 19, 2026 10:42
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants