Branch policy for activation.
Controls which groups are activated on matching branches and which pipeline features are disabled.
Fields
:pattern(String.t()) — branch name or glob pattern to match (e.g."main","release/*"):scopes(:all | [atom()] | nil) — which scopes to activate.:allbypasses file-based targeting and activates every group. A list restricts activation to the named scopes.niluses default file-based targeting.:disable([atom()] | nil) — pipeline features to turn off for this branch (e.g.[:targeting]to skip scope-based filtering)
Example
%Pipette.Branch{
pattern: "main",
scopes: :all,
disable: [:targeting]
}
%Pipette.Branch{
pattern: "release/*",
scopes: [:api, :web],
disable: nil
}