You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If all the checks have been completed and the PR is ready to review, the action will fail when trying to enable auto-merge with the error Pull request is in clean status.
To solve this, we can use the mergePullRequest GraphQL endpoint instead if auto-merge is unavailable.
The text was updated successfully, but these errors were encountered:
There is an issue that you can not enable `auto-merge` when a PR is
ready to merge.
For this situation, I have added a try/catch block where it evaluates if
the error contains the message `Pull request is in clean status`. If so,
it will use the
[mergePullRequest](https://docs.github.com/en/graphql/reference/mutations#mergepullrequest)
mutation to merge the PR directly.
This fixes#12
If all the checks have been completed and the PR is ready to review, the action will fail when trying to enable
auto-merge
with the errorPull request is in clean status
.To solve this, we can use the
mergePullRequest
GraphQL endpoint instead ifauto-merge
is unavailable.The text was updated successfully, but these errors were encountered: