pub struct GitConfig {
pub branch_prefix: String,
pub target_branch: String,
pub merge_strategy: String,
pub pr_template: Option<PathBuf>,
pub remote: String,
pub auto_merge: bool,
pub protected_branches: Vec<String>,
}Expand description
Git adapter configuration
Fields§
§branch_prefix: StringBranch naming prefix (e.g., “ta/”, “feature/”)
target_branch: StringTarget branch for PRs (e.g., “main”, “develop”)
merge_strategy: StringMerge strategy: “squash”, “merge”, “rebase”
pr_template: Option<PathBuf>Path to PR body template (optional)
remote: StringGit remote name
auto_merge: boolEnable GitHub auto-merge after PR creation (v0.11.2.3).
When true, runs gh pr merge --auto --squash after gh pr create.
protected_branches: Vec<String>Protected branches that agents must never commit to directly (§15). Defaults to [“main”, “master”, “trunk”, “dev”] when empty.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitConfig
impl<'de> Deserialize<'de> for GitConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GitConfig
impl RefUnwindSafe for GitConfig
impl Send for GitConfig
impl Sync for GitConfig
impl Unpin for GitConfig
impl UnsafeUnpin for GitConfig
impl UnwindSafe for GitConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more