Skip to content

Conversation

@hiroshinishio
Copy link
Collaborator

  1. Allow auto-merge when mergeable_state is "blocked"

    • Previously only allowed "clean" state
    • "blocked" can mean missing reviews, which auto-merge should bypass
    • Still block on: behind, dirty, unstable, unknown
  2. Move GitAuto author check earlier (line 34)

    • Check immediately after extracting PR author
    • Avoids unnecessary database queries for non-GitAuto PRs
    • Usage table only tracks GitAuto activity
  3. Add test for blocked state auto-merge

    • Verifies auto-merge works when reviews are missing
    • Total: 12 tests passing

1. Allow auto-merge when mergeable_state is "blocked"
   - Previously only allowed "clean" state
   - "blocked" can mean missing reviews, which auto-merge should bypass
   - Still block on: behind, dirty, unstable, unknown

2. Move GitAuto author check earlier (line 34)
   - Check immediately after extracting PR author
   - Avoids unnecessary database queries for non-GitAuto PRs
   - Usage table only tracks GitAuto activity

3. Add test for blocked state auto-merge
   - Verifies auto-merge works when reviews are missing
   - Total: 12 tests passing
@hiroshinishio hiroshinishio merged commit d913509 into main Dec 25, 2025
1 check passed
@hiroshinishio hiroshinishio deleted the wes branch December 25, 2025 06:09
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