Reputation: 13
I have a branch "future" , and when the branch does not pass the test, then I need to block the possibility of merging the "feature" branch into the "main" branch. How to do it??
Upvotes: 0
Views: 1534
Reputation: 165396
Configure Jenkins to send status checks to Github with the GitHub Checks plugin.
Then in Github protect your branch and disallow merges if any checks have failed. See Require Status Checks Before Merging.
Upvotes: 2