Skip to content

github: skip Copilot reviews for draft PRs - #13996

Open
andrijapanicsb wants to merge 1 commit into
apache:mainfrom
andrijapanicsb:copilot/skip-draft-pr-reviews
Open

github: skip Copilot reviews for draft PRs#13996
andrijapanicsb wants to merge 1 commit into
apache:mainfrom
andrijapanicsb:copilot/skip-draft-pr-reviews

Conversation

@andrijapanicsb

Copy link
Copy Markdown
Contributor

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

copilot_code_review:
  enabled: true
  review_drafts: false
  review_on_push: true

Testing

Configuration-only change. Verified the resulting YAML diff changes only review_drafts from true to false.

@andrijapanicsb

Copy link
Copy Markdown
Contributor Author

@vishesh92 pls verify this. Your tokens are affected :)

@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 19.73%. Comparing base (6764ca5) to head (c0ff702).

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     
Flag Coverage Δ
uitests 3.41% <ø> (ø)
unittests 21.01% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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