mergeable
mergeable copied to clipboard
Message "Required status check "Mergeable" is expected." on local push
Hello! I have a problem using mergeable. When I try to push to a mergeable protected branch I get the message "Required status check "Mergeable" is expected.". But it's just an update from the master to release. Is there any solution for this?
Hi @jemersonmaia , I am having a hard time understanding your issue, could you elaborate a bit more?
Hi @shine2lay, thanks for replying!
I'm locally performing a merge from one branch to another, however, when I push to the remote repository, I get this error:
remote: error: GH006: Protected branch update failed for refs/heads/release.
remote: error: Required status check "Mergeable" is expected.
Basically I perform these steps, being on the release branch:
git fetch origin master
git merge --no-edit origin/master
git push origin release
And I have this output:
From https://github.com/***/***
* master branch -> FETCH_HEAD
Merge made by the 'ort' strategy.
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
remote: error: GH006: Protected branch update failed for refs/heads/release.
remote: error: Required status check "Mergeable" is expected.
To https://github.com/***/***
! [remote rejected] release -> release (protected branch hook declined)
error: failed to push some refs to 'https://github.com/***/***'
Error: Process completed with exit code 1.
I don't understand why it's failing, since the events in the mergeable.yml file are just pull_request.
When i disable "Mergeable" it works correctly.
@jemersonmaia From what I can tell, I think this is a github setting issue.
It seem you have a protected branch and made mergeable as one of the required check on that branch. You seem to be directly pushing against the protected branch which seems odd. Shouldn't you be created a PR against it?
The solutions I can think of is 1. remove protected status of the branch. 2. remove mergeable as required check in the branch. 3. create a PR against branch instead of directly pushing it.
Is there no way to ignore or skip "mergeable" validations on push? Through the message? @shine2lay
@jemersonmaia I don't know if github setting allows it but this is something that can not be done through mergeable. Mergable works through webhooks, if the push fails, mergeable won't even receive a webhook. So there is nothing we can do through mergeable.