pub struct GitAutomationTargetBranch {
pub id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub archived_at: Option<DateTime<Utc>>,
pub team: Option<Team>,
pub branch_pattern: Option<String>,
pub is_regex: Option<bool>,
pub automation_states: Option<GitAutomationStateConnection>,
}Expand description
A target branch definition used by Git automation rules to scope automations to specific branches. The branch can be specified as an exact name (e.g., ‘main’) or as a regular expression pattern (e.g., ‘release/.*’). Each target branch belongs to a team and can have multiple automation rules associated with it, which override the team’s default automation rules when a PR targets a matching branch.
Fields§
§id: Option<String>The unique identifier of the entity.
created_at: Option<DateTime<Utc>>The time at which the entity was created.
updated_at: Option<DateTime<Utc>>The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn’t been updated after creation.
archived_at: Option<DateTime<Utc>>The time at which the entity was archived. Null if the entity has not been archived.
team: Option<Team>The team that this target branch definition belongs to. The branch pattern is unique within a team.
branch_pattern: Option<String>The branch name or pattern to match against pull request target branches. Interpreted as a literal branch name unless isRegex is true, in which case it is treated as a regular expression.
is_regex: Option<bool>Whether the branch pattern should be interpreted as a regular expression. When false, the pattern is matched as an exact branch name.
automation_states: Option<GitAutomationStateConnection>Git automation rules associated with this target branch. These rules override the team’s default automation rules when a pull request targets a branch matching this pattern.
Trait Implementations§
Source§impl Clone for GitAutomationTargetBranch
impl Clone for GitAutomationTargetBranch
Source§fn clone(&self) -> GitAutomationTargetBranch
fn clone(&self) -> GitAutomationTargetBranch
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more