How to disable GitHub pull request merge button when CI job got failed? #21611
-
How to disable GitHub pull request merge button when the CI job got failed? The user could not merge the pull request changes when the CI job got failed. The user can merge only CI job got success. Are there any possibilities to do this? Could you suggest a solution for this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can do that with branch protection rules, see the documentation here: Require status checks before merging |
Beta Was this translation helpful? Give feedback.
-
Thanks for the update, it’s working fine. After enabling the Require status checks before merging, I have added value as build on Status checks that are required column, it is working fine. Regards, |
Beta Was this translation helpful? Give feedback.
You can do that with branch protection rules, see the documentation here: Require status checks before merging