From e5cd248c8f6b75bd50057f317887f36ccdaf8601 Mon Sep 17 00:00:00 2001 From: Cyborus Date: Fri, 26 Apr 2024 12:56:49 -0400 Subject: regenerate source --- src/generated/structs.rs | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/generated/structs.rs b/src/generated/structs.rs index a4d920c..bcb8682 100644 --- a/src/generated/structs.rs +++ b/src/generated/structs.rs @@ -793,6 +793,19 @@ pub struct Cron { pub schedule: Option, } +#[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] +pub enum DefaultMergeStyle { + #[serde(rename = "merge")] + Merge, + #[serde(rename = "rebase")] + Rebase, + #[serde(rename = "rebase-merge")] + RebaseMerge, + #[serde(rename = "squash")] + Squash, + #[serde(rename = "fast-forward-only")] + FastForwardOnly, +} /// DeleteEmailOption options when deleting email addresses #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct DeleteEmailOption { @@ -1039,8 +1052,7 @@ pub struct EditRepoOption { pub default_branch: Option, /// set to `true` to delete pr branch after merge by default pub default_delete_branch_after_merge: Option, - /// set to a merge style to be used by this repository: "merge", "rebase", "rebase-merge", "squash", or "fast-forward-only". - pub default_merge_style: Option, + pub default_merge_style: Option, /// a short description of the repository. pub description: Option, /// enable prune - remove obsolete remote-tracking references @@ -2212,7 +2224,7 @@ pub struct Repository { pub default_allow_maintainer_edit: Option, pub default_branch: Option, pub default_delete_branch_after_merge: Option, - pub default_merge_style: Option, + pub default_merge_style: Option, pub description: Option, pub empty: Option, pub external_tracker: Option, -- cgit v1.2.3