From 11002d26368ffb7c9f846dfa91d0403314323a24 Mon Sep 17 00:00:00 2001 From: Paul Bovbel Date: Thu, 23 Mar 2023 13:32:28 -0400 Subject: [PATCH] Easy cherry-picks --- tailor_meta/update_repo_settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tailor_meta/update_repo_settings.py b/tailor_meta/update_repo_settings.py index a014fe8..d85445f 100644 --- a/tailor_meta/update_repo_settings.py +++ b/tailor_meta/update_repo_settings.py @@ -49,7 +49,10 @@ def update_repo_settings(rosdistro_index: pathlib.Path, recipes: Mapping[str, An # Protect branch branch = gh_repo.get_branch(repository_data.get_data()["source"]["version"]) if deploy: - branch.edit_protection(strict=True, required_approving_review_count=1) + if release_track == "hotdog": + branch.edit_protection(strict=True, required_approving_review_count=1) + else: # don't require PR to commit to release branches, to enable quicker cherry picking + branch.edit_protection(strict=True) # Create label if deploy: