How to disable GitHub pull request merge button when CI job got failed?

How to disable GitHub pull request merge button when the CI job got failed?
Merge button got enable only CI job got success otherwise it should be disabled.

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?

You can do that with branch protection rules, see the documentation here: Require status checks before merging

1 Like

Hi @airtower-luna

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,
Elango R.

1 Like