We would like to use mandatory code reviews on pull requests in GitHub Enterprise 2.10 (using the "Require pull request reviews before merging" feature in the repository protected branch settings).
However, when we enable this feature, Maven release builds fail, since the release plugin tries to push the new SNAPSHOT version to the repository using the credentials of the user that runs the TeamCity release build.
Has anyone come up with an approach that works for this? Our requirements are:
- Require code reviews for normal commits/pull requests
- Allow automated release builds to commit the updated POM versions
- Have all commits done by specific non-shared user accounts