'Disable pull request merge unless job passes
I want to allow all three merge operations:
- Create a merge commit
- Squash and merge
- Rebase and merge
But for the non-squash operations (1 and 3 above) I only want to enable them if a certain job/check passes.
That job/check would go through all commits and verify them (build, lint etc).
Is it possible to enable the merge methods like that? How?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
