[sysadmin/repo-management] maintenance: Ensure that the option to 'Delete source branch' is enabled by default on all new Merge Requests.
Ben Cooksley
null at kde.org
Fri Dec 3 18:41:03 GMT 2021
Git commit 3e2d23469b401a1013efef0eb7f479a3bf328898 by Ben Cooksley.
Committed on 03/12/2021 at 18:40.
Pushed by bcooksley into branch 'master'.
Ensure that the option to 'Delete source branch' is enabled by default on all new Merge Requests.
CCMAIL: kde-devel at kde.org
M +2 -0 maintenance/update-project-settings.py
https://invent.kde.org/sysadmin/repo-management/commit/3e2d23469b401a1013efef0eb7f479a3bf328898
diff --git a/maintenance/update-project-settings.py b/maintenance/update-project-settings.py
index e2568d1..d50443b 100755
--- a/maintenance/update-project-settings.py
+++ b/maintenance/update-project-settings.py
@@ -54,6 +54,8 @@ for currentPath, subdirectories, filesInFolder in os.walk( args.metadata_path, t
project.merge_method = 'ff'
# As well as the only allow merge if discussions are resolved setting
project.only_allow_merge_if_all_discussions_are_resolved = True
+ # Ensure we cleanup branches on source repositories too
+ project.remove_source_branch_after_merge = True
# Disable request access option for all projects, as we want access control managed by developer account process
project.request_access_enabled = False
# Disable operations as we don't use that functionality in Gitlab and it is just distracting
More information about the kde-devel
mailing list