-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat: Add support for copilot_code_review rule type #3857
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat: Add support for copilot_code_review rule type #3857
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
d68c9c1 to
fab8541
Compare
|
This is for Github Terraform provider to support code review bot feature in repo ruleset, relevant PR: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3857 +/- ##
==========================================
- Coverage 92.36% 92.29% -0.07%
==========================================
Files 199 199
Lines 14308 14324 +16
==========================================
+ Hits 13215 13221 +6
- Misses 894 902 +8
- Partials 199 201 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add support for GitHub's Copilot code review feature in repository rulesets, allowing automatic code review requests for pull requests. Changes: - Add RulesetRuleTypeCopilotCodeReview constant to rule types - Add CopilotCodeReviewRuleParameters struct with review_new_pushes and review_draft_pull_requests fields - Implement marshal/unmarshal logic for copilot_code_review rules - Add comprehensive test coverage for the new rule type The copilot_code_review rule supports two configuration options: - review_new_pushes: Automatically review each new push to the PR - review_draft_pull_requests: Automatically review draft PRs
fab8541 to
2b90cfa
Compare
|
Force-pushing is completely unnecessary. Please see CONTRIBUTING.md for why. |
Add CopilotCodeReviewRuleParameters struct with ReviewNewPushes and ReviewDraftPullRequests fields to support GitHub's Copilot code review rule for repository rulesets.
Changes:
this feature is based on https://github.blog/changelog/2025-09-10-copilot-code-review-independent-repository-rule-for-automatic-reviews/ (an independent repository rule instead of pull request rule)