ci: configure copilot review to reduce noise#1064
Conversation
- 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>
✅ Deploy Preview for kpt-porch ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
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.ymlto scope Copilot review focus areas and exclude generated/vendored paths. - Add
.github/workflows/copilot-review.yamlto request Copilot as a reviewer onpull_requestopened.
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. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
5cf161f to
eabb946
Compare
liamfallon
left a comment
There was a problem hiding this comment.
Hopefully it'll listen to you.
Signed-off-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Fiachra Corcoran <fiachra.corcoran@est.tech>
|
There was a problem hiding this comment.
In theory Copilot picks up the instructions from AGENTS.md. I would prefer to have all agent related instructions in one place.
I'm already working on a PR about AGENTS.md for kpt here: kptdev/kpt#4573
What if we merge this PR and once the kpt AGENTS.md is in I will create a pr for AGENTS.md to Porch and merge the contents of .github/copilot-code-review.yml there?
There was a problem hiding this comment.
Ye, I was going off this guide.
Main objective is to reduce the noise on PRs by restricting the number of reviews that are run on the PR.




Description
.github/copilot-code-review.ymland.github/workflows/copilot-review.yamlRelated Issue(s)
Type of Change
Checklist
Testing Instructions
Additional Notes
/reviewor reviewer request still works for on-demand reviews after initial openAI Disclosure
If so, please describe how: