Esta página ainda não está disponível no seu idioma
Está a lê-la em English (UK).
linear_git_automation_target_branch
Manages a target branch pattern for a Linear team's git automation. Reference it from linear_git_automation_state.target_branch_id to scope automation rules to pull requests against branches matching this pattern.
linear_git_automation_target_branch (Resource)
Manages a target branch pattern for a Linear team's git automation. Reference it from linear_git_automation_state.target_branch_id to scope automation rules to pull requests against branches matching this pattern.
Example Usage
resource "linear_git_automation_target_branch" "main" {
team_id = linear_team.engineering.id
branch_pattern = "main"
}
resource "linear_git_automation_target_branch" "release" {
team_id = linear_team.engineering.id
branch_pattern = "^release/.+$"
is_regex = true
}
Schema
Required
branch_pattern(String) Branch name to match, e.g.main. Unique within the team. Treated as a regular expression whenis_regexis true.team_id(String) UUID of the team the pattern belongs to. Changing it replaces the resource —gitAutomationTargetBranchUpdatehas noteamId.
Optional
is_regex(Boolean) Whetherbranch_patternis a regular expression rather than an exact branch name.
Read-Only
id(String) UUID of the target branch definition.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
# Import by UUID.
terraform import linear_git_automation_target_branch.example a1b2c3d4-0000-0000-0000-000000000000
Esta página foi útil?