Workzone pull request workflow hooks control how teams interact with pull request changesets:
- Allow or block push operations to a branch once a pull request has been created.
- Reset all approvals on a pull request should the source branch get updated.
- Reset all approvals on a pull request should the target branch get updated.
- Block/Allow merging pull requests based on configurable merge conditions.
Push after pull request #
- Enable: Users can push to the source branch that has an active outgoing pull request. The pull request is updated.
- Disable: Users are not allowed to push to a branch the has an active outgoing pull request. Git push will be rejected.
Reset approvals on source branch changes #
This setting can only be activated if ‘Push after pull request’ is allowed.)
- Enable: After pushing changes to a source branch with an outgoing pull request, all given approvals (if any) will be withdrawn. All reviewers need to re-approve the pull request.
- Disable: After the source branch of an active pull request has been updated, given approvals are not reset.
Reset approvals on destination branch changes #
When an active pull request’s destination branch commit status changes through a merge or otherwise, the pull request is re-scoped. This is as important as resetting approvals on source branch changes as the effective diff for the pull request changes, which makes another review desirable.
- Enable: After pull request rescope, all given approvals (if any) will be withdrawn. All reviewers need to re-approve the pull request.
- Disable: After pull request rescope, given approvals are not reset.
Enforce merge conditions #
Enables a repository wide merge check hook that enforces Workzone merge conditions before a pull request can be merged.