A team uses a monorepo with multiple projects in one Git repository. They want to enforce that each commit message must reference a work item from Azure Boards. Which branch policy should they configure?
Trap 1: Automatically include work items in pull request descriptions
This is not a branch policy; it's a repository setting that auto-links work items based on commit messages.
Trap 2: Configure a minimum number of reviewers policy
This enforces review count, not work item linking.
Trap 3: Use a build validation policy to check commit messages
Build validation runs a pipeline but does not enforce work item linking directly.
- A
Automatically include work items in pull request descriptions
Why wrong: This is not a branch policy; it's a repository setting that auto-links work items based on commit messages.
- B
Require a work item linking policy in branch policies
This policy enforces that every pull request has at least one linked work item.
- C
Configure a minimum number of reviewers policy
Why wrong: This enforces review count, not work item linking.
- D
Use a build validation policy to check commit messages
Why wrong: Build validation runs a pipeline but does not enforce work item linking directly.