diff --git a/src/github/api/write.rs b/src/github/api/write.rs index fb00a4c..1bc8d4c 100644 --- a/src/github/api/write.rs +++ b/src/github/api/write.rs @@ -219,12 +219,14 @@ impl GitHubWrite { description: &'a str, homepage: &'a Option, auto_init: bool, + delete_branch_on_merge: bool, } let req = &Req { name, description, homepage, auto_init: true, + delete_branch_on_merge: true, }; debug!("Creating the repo {org}/{name} with {req:?}"); if self.dry_run { @@ -254,10 +256,12 @@ impl GitHubWrite { struct Req<'a> { description: &'a Option, homepage: &'a Option, + delete_branch_on_merge: bool, } let req = Req { description, homepage, + delete_branch_on_merge: true, }; debug!("Editing repo {}/{} with {:?}", org, repo_name, req); if !self.dry_run {