From ed66d6c345ef6911ecd68f07e6a295b2212b69aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Fri, 1 Mar 2024 16:33:18 +0100 Subject: [PATCH] Automatically set `delete_branch_on_merge` for repositories --- src/github/api/write.rs | 4 ++++ 1 file changed, 4 insertions(+) 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 {