require-azure-pipelines-trigger-include-branches
Require trigger.branches.include in Azure Pipelines to contain branch entries.
Targeted pattern scopeâ
- Root
trigger.branches.includeinazure-pipelines.yml.
What this rule reportsâ
This rule reports trigger branch include blocks that are present but empty.
Why this rule existsâ
Empty include blocks can silently disable intended CI triggers or create ambiguous trigger behavior.
â Incorrectâ
trigger:
branches:
include:
â Correctâ
trigger:
branches:
include:
- main
When not to use itâ
Disable this rule if push trigger branch selection is managed outside repository YAML.
Rule catalog ID: R110