Skip to content

fix(ci): count PR size with three-dot diff - #33

Merged
lassebenni merged 1 commit into
mainfrom
fix/pr-size-check-three-dot-diff
Aug 27, 2026
Merged

fix(ci): count PR size with three-dot diff#33
lassebenni merged 1 commit into
mainfrom
fix/pr-size-check-three-dot-diff

Conversation

@lassebenni

Copy link
Copy Markdown
Collaborator

Summary

  • Count PR size with a three-dot diff (base...head) so the check matches GitHub's "Files changed" tab.
  • Two-dot base..head falsely fails branches that are behind main: it treats teammates' merges on main as part of the PR.

Test plan

  • Open a small PR from a branch that is behind main; "Diff stays reviewable" should pass.
  • A PR that genuinely exceeds 400 changed lines should still fail (or pass with Oversized: in the description).

Made with Cursor

Two-dot base..head includes main-only commits when a branch is behind
main, so small PRs could fail the 400-line limit. Use base...head to
match GitHub's Files changed scope.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI lite review requested due to automatic review settings August 27, 2026 05:29

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@lassebenni
lassebenni merged commit eae2d25 into main Aug 27, 2026
1 of 3 checks passed
@lassebenni
lassebenni deleted the fix/pr-size-check-three-dot-diff branch August 27, 2026 05:37
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