Does github actions run on non mergable pull request #25904
-
I have an action which runs on pull_request trigger. What happens with pull requests which are not mergable? Will the action still be triggered? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi @david-gang
More about pull_request activity types please refer here. |
Beta Was this translation helpful? Give feedback.
-
Can you please tell me which activity type is active in this case? Thanks |
Beta Was this translation helpful? Give feedback.
-
Hi @david-gang If you set the Branch protection rule and some Require status checks fail, the pull request is also in a non-mergable state. In this case, the action still be triggered as long as the pull request activity types are met. |
Beta Was this translation helpful? Give feedback.
Hi @david-gang
I misunderstood you in the reply above. Sorry for that. I update the reply:
If there is a conflict, your action will not be triggered. It will be triggered until the conflict is resolved.
If you set the Branch protection rule and some Require status checks fail, the pull request is also in a non-mergable state. In this case, the action still be triggered as long as the pull request activity types are met.