In our GitHub repository we've recently enabled Require pull request reviews before merging rule for develop
branch.
Also, we have a little bash script that creates a new version that does the following:
- update version in pom.xml
- git commit
- create new git tag
- git push
We run this script in develop
branch, and it's commits have certain name pattern: New version: ${new-version}
.
Problem
Because of "Require pull request reviews before merging" rule, "new version"-commits are now being rejected since they have no accepts, which seems to be totally reasonable.
Question
Is there a way to not enforce "Require pull request reviews before merging" rule for commits with certain name pattern?