Skip to content

Enable Copilot for PR reviews#4452

Merged
snazy merged 1 commit into
apache:mainfrom
snazy:copilot
May 19, 2026
Merged

Enable Copilot for PR reviews#4452
snazy merged 1 commit into
apache:mainfrom
snazy:copilot

Conversation

@snazy
Copy link
Copy Markdown
Member

@snazy snazy commented May 15, 2026

This change opts the Apache Polaris repository in to GitHub Copilot code review through .asf.yaml for initial non-draft PR reviews.

The repository instructions ask Copilot to stay quiet unless the diff gives a concrete reason to suspect a missing documentation, test, or security-review update. The instructions focus on omission detection rather than certifying code correctness, test sufficiency, or documentation completeness.

A CI check validates that Copilot instruction files keep path-specific frontmatter, and conservative size limits (there's a limit on the byte-size of GH Copilot instructions).

Copilot review comments are advisory only, and not authoritative for merge readiness.

This change opts the Apache Polaris repository in to GitHub Copilot code review through `.asf.yaml` for initial non-draft PR reviews.

The repository instructions ask Copilot to stay quiet unless the diff gives a concrete reason to suspect a missing documentation, test, or security-review update.
The instructions focus on omission detection rather than certifying code correctness, test sufficiency, or documentation completeness.

A CI check validates that Copilot instruction files keep path-specific frontmatter, and conservative size limits.

Copilot review comments are advisory, not authoritative for merge readiness.
Comment thread .asf.yaml
copilot_code_review:
enabled: true
review_drafts: false
review_on_push: false
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.

why not review all pushes?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's a precaution - or conservative setting - to not let Copilot comment more often than necessary. We can still request another review manually for another push (like frequent rebases, non-review-worthy commit pushes).

But it's also because Copilot runs count towards actions ("minutes") usage now (or soon?), so it's not "free."

I thought, that's the better initial way. If it feels useful, we can certainly enable it later.

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.

noted - makes sense - thx!

@github-project-automation github-project-automation Bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board May 15, 2026
@snazy snazy merged commit d4b8bc3 into apache:main May 19, 2026
24 checks passed
@snazy snazy deleted the copilot branch May 19, 2026 06:06
@github-project-automation github-project-automation Bot moved this from Ready to merge to Done in Basic Kanban Board May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants