mergeable_state inconsistent behavior based on requester #152103
Unanswered
umut-akkaya-strt
asked this question in
API and Webhooks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Situation
I am using
issue_comment
trigger to merge a PR. The workflow runs only on default branch. When a new PR is created new health checks are being started. After all checks completed i trigger the issue_comment by commenting in PR. Then a new workflow is started. In the issue_comment workflow we check for PR's state for merging such as did all checks are passed or is it approved. I am usingmergeable_state
for all of these.Problem
When workflow uses octokit to request
/repos/{owner}/{repo}/pulls/{pull_number}
API is returns as blocked. However at the same time when i usegh
utility to query the same api it shown asclean
. All of the checks and approvals are ready but it still returnsblocked
in workflow.Beta Was this translation helpful? Give feedback.
All reactions