github: skip Copilot reviews for draft PRs - #13996
Open
andrijapanicsb wants to merge 1 commit into
Open
Conversation
Contributor
Author
|
@vishesh92 pls verify this. Your tokens are affected :) |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13996 +/- ##
============================================
- Coverage 19.73% 19.73% -0.01%
+ Complexity 19959 19956 -3
============================================
Files 6371 6371
Lines 575784 575784
Branches 70478 70478
============================================
- Hits 113653 113644 -9
- Misses 449778 449788 +10
+ Partials 12353 12352 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
DaanHoogland
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Disable automatic GitHub Copilot code reviews for draft pull requests while keeping automatic review enabled once a PR is ready for review and on subsequent pushes.
Rationale
A draft PR explicitly represents work that is not yet ready for review. Contributors may use drafts as an incremental remote workspace and push many incomplete commits while developing or testing a change. Running Copilot review on the initial draft and on every push during that phase creates review noise and consumes AI/Actions resources before the author has requested review.
This keeps the useful automatic review behaviour for PRs that are ready for review, including re-review after later pushes.
Change
Testing
Configuration-only change. Verified the resulting YAML diff changes only
review_draftsfromtruetofalse.