-
Notifications
You must be signed in to change notification settings - Fork 213
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
question: not updating branch - mergeable_state: clean #47
Comments
I'm not 100 % sure. It might be an issue with GitHub, but it could also be an issue with automerge-action. You could
|
I think in the case I described above it perhaps was somehow an error from the github API. I've now got another PR that is correctly reported as "behind", but the automerge action never seems to enter the merge function. All I see in the logs is "Failed to merge... waiting for review" and "Getting latest PR data". Does the PR need to be approved for the branch to be updated? |
Do you see any message Is the PR from a branch in the same repository or from a fork? If it's a fork, the issues described in #46 might apply to you |
No, I don't see that message, that's what surprised me because before it always got to that point and then followed with "mergeable_state clean". It's not a fork. |
If possible, could you maybe try running the action locally? You will need a personal access token. Then clone the repository, create a file
and finally run Maybe it can give more insight into the issue. |
Well, that definitely produces different behavior. Running it locally I have
whereas the github action gives
Obviously the configuration is different so the eventual failure is different. But my expectation would be that they both update the PR in the same way? |
I have the same issue – the action clearly reports (using 7854d3b, latest as of 2020/02/06)
Running the action locally does not seem to encounter the same issue:
After adding tracing however, it seems the initial payload, that gets used by default if present: automerge-action/lib/update.js Lines 110 to 111 in 629929d
claims that it has
even though forcibly requesting its status (which the CLI run would do) would return the correct |
@olivierlefloch Thanks for the investigation! I created PR #52 for this. You can try out the changes using steps:
- name: automerge
uses: "pascalgn/automerge-action@493bb4288832f19203691042e34cd8f1a889c1d0" Let us know how it goes! 👍 |
Hey @pascalgn I just tried with your PR - I've got a PR that needs to update the branch before it can be merged. The log of the |
I think this is still not fixed, but the error is quite hard to reproduce and it's a long time since there was any activity here. I will close this issue for now, but if you have any new information or need any help, feel free to reopen this issue! |
Thanks for this super useful action!
In trying to set it up I've hit an issue that I can't seem to resolve. From what I understand, the action should update the branch if needed via a merge commit or a rebase. The branch rules on the repo require that the branches are up-to-date before merging. In a PR, the branch is not up-to-date, but the github API returns
mergeable_state: clean
for the PR so the action doesn't do an update with the messageNo update necessary, mergeable_state: clean
- the PR obviously now can't be merged because it's not up-to-date and no further action is taken. How should this be resolved?The text was updated successfully, but these errors were encountered: