Skip to content

Comments

Fix auto-merge workflow: approve PR before enabling auto-merge#37

Closed
xerial wants to merge 1 commit intomainfrom
fix-auto-merge-workflow
Closed

Fix auto-merge workflow: approve PR before enabling auto-merge#37
xerial wants to merge 1 commit intomainfrom
fix-auto-merge-workflow

Conversation

@xerial
Copy link
Member

@xerial xerial commented Sep 3, 2025

Summary

  • Reorder workflow steps to approve PR before enabling auto-merge
  • This resolves the 'Pull request is in clean status' GraphQL error
  • Auto-merge requires approval or branch protection rules to be effective

Problem

The auto-merge workflow was failing with the error: "Pull request Pull request is in clean status (enablePullRequestAutoMerge)"

Root Cause

GitHub's auto-merge can only be enabled when:

  1. There are pending status checks, OR
  2. The PR has been approved, OR
  3. Branch protection rules are configured

The workflow was trying to enable auto-merge before approving the PR, causing the "clean status" error.

Solution

Reordered the workflow steps to:

  1. First approve the PR
  2. Then enable auto-merge

This ensures auto-merge has the necessary conditions to be enabled successfully.

🤖 Generated with Claude Code

- Reorder steps to approve PR first before enabling auto-merge
- This resolves the 'Pull request is in clean status' GraphQL error
- Auto-merge requires approval or branch protection rules to be effective
@gemini-code-assist
Copy link

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@xerial xerial closed this Sep 3, 2025
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.

1 participant