From 9e9dcfd719f96f449e001bea0a5ef1d9a398c916 Mon Sep 17 00:00:00 2001 From: nickfyson Date: Mon, 11 Dec 2023 17:17:15 +0000 Subject: [PATCH] use custom prefix for branch in backport prs --- .github/update-release-branch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/update-release-branch.py b/.github/update-release-branch.py index ff65abe84..b17cafc7a 100644 --- a/.github/update-release-branch.py +++ b/.github/update-release-branch.py @@ -255,10 +255,13 @@ def main(): print(f'No commits to merge from {source_branch} to {target_branch}.') return + # define distinct prefix in order to support specific pr checks on backports + branch_prefix = 'update' if is_primary_release else 'backport' + # The branch name is based off of the name of branch being merged into # and the SHA of the branch being merged from. Thus if the branch already # exists we can assume we don't need to recreate it. - new_branch_name = f'update-v{version}-{source_branch_short_sha}' + new_branch_name = f'{branch_prefix}-v{version}-{source_branch_short_sha}' print(f'Branch name is {new_branch_name}.') # Check if the branch already exists. If so we can abort as this script