This rule ensures a pull request is always up to date with the base branch prior to merging or rebasing.
When teams collaborate on the same repository, a team member may inadvertently push code to the base branch when there are open pull requests, and thus cause the base branch to be ahead of the feature branch.
- Ensures the feature branch is synced and up to date with base branch code changes
When does this rule fail?
When base branch is ahead of the feature branch. This can occur when a pull request is under review - meaning the rule passed but new code was merged to the base branch. When this happens, a trigger automatically checks, and consequently fails, the rule.
How to fix?
Pull the changes (merge or rebase) from the base branch to the feature branch
|Activate a policy|