BranchRule
import type { BranchRule } from "https://googleapis.deno.dev/v1/securesourcemanager:v1.ts";
Metadata of a BranchRule. BranchRule is the protection rule to enforce pre-defined rules on designated branches within a repository.
§Properties
Optional. Determines if allow stale reviews or approvals before merging to the branch.
Optional. User annotations. These attributes can only be set and used by the user. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
Optional. The pattern of the branch that can match to this BranchRule.
Specified as regex. .* for all branches. Examples: main, (main|release.*).
Current MVP phase only support .*
for wildcard.
Optional. The minimum number of approvals required for the branch rule to be matched.
Optional. The minimum number of reviews required for the branch rule to be matched.
Optional. A unique identifier for a BranchRule. The name should be of the
format:
projects/{project}/locations/{location}/repositories/{repository}/branchRules/{branch_rule}
Optional. Determines if require comments resolved before merging to the branch.
Optional. Determines if require linear history before merging to the branch.