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 · 1 comment
Closed

AutoMerge not working #179

sahilreddyifit opened this issue Jan 20, 2022 · 1 comment

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/automerge-action@v0.14.3"
        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

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

1 participant