I am looking to disable the “Merge pull request” button on GitHub when any jobs have failed or are in progress(as you can see in the image), and only enable it when “All checks have passed.” I am interested in achieving this using GitHub Actions workflows, preferably without(with also fine) relying on third-party packages.
I have enabled “Require pull request reviews before merging”, and “Require status checks to pass before merging”. But, not disabling the button.