Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoMerge not working #179

Closed
sahilreddyifit opened this issue Jan 20, 2022 · 3 comments
Closed

AutoMerge not working #179

sahilreddyifit opened this issue Jan 20, 2022 · 3 comments

Comments

@sahilreddyifit
Copy link

sahilreddyifit commented Jan 20, 2022

I have a pretty generic setup for automerge as follows:

name: automerge
on:
  pull_request:
    types:
      - labeled
      - unlabeled
      - synchronize
      - opened
      - edited
      - ready_for_review
      - reopened
      - unlocked
  pull_request_review:
    types:
      - submitted
  check_suite:
    types:
      - completed
  status: {}
jobs:
  automerge:
    runs-on: ubuntu-latest
    steps:
      - name: automerge
        uses: "pascalgn/[email protected]"
        env:
          MERGE_LABELS: ""
          MERGE_RETRIES: "32"
          MERGE_RETRY_SLEEP: "60000"
          MERGE_METHOD: "squash"
          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

But I'm not able to automerge. I saw this comment (#122 (comment)) about the merge button needing to be green to stop mergeable_state from being blocked. But the action itself produces a status check which doesn't allow the button to be green and mergeable_state to be unblocked. Instead of it being green, all of my other status checks pass and the button is grey because the automerge status check is still going. How do I get around this so I can merge when my other status checks have passed?

@sahilreddyifit
Copy link
Author

This was actually a branch protection issue

@q-yusufmahtab
Copy link

q-yusufmahtab commented Jul 26, 2024

@sahilreddyifit can you describe the underlying issue please? I'm facing the same thing

image

@q-yusufmahtab
Copy link

I just noticed the logs say

2024-07-26T15:55:19.324Z INFO  Skipping PR update, required label missing: automerge

but here's my configuration:

      - name: Automerge PR
        uses: pascalgn/[email protected]
        env:
          GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
          MERGE_LABELS: ready-to-merge
          MERGE_METHOD: squash
          MERGE_DELETE_BRANCH: true

Very strange...

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

No branches or pull requests

2 participants