Skip to content

Commit a350a5b

Browse files
committed
ptl-tool: add options to append to branch name
Signed-off-by: Patrick Donnelly <[email protected]>
1 parent fb68c68 commit a350a5b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/script/ptl-tool.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,10 @@ def build_branch(args):
322322
branch = datetime.datetime.utcnow().strftime(args.branch).format(user=USER)
323323
if args.branch_release:
324324
branch = branch + "-" + args.branch_release
325+
if args.branch_append:
326+
branch += f"-{args.branch_append}"
325327
if args.debug_build:
326-
branch = branch + "-debug"
328+
branch += "-debug"
327329
label = args.label
328330
merge_branch_name = args.merge_branch_name
329331
if merge_branch_name is False:
@@ -556,6 +558,7 @@ def main():
556558
parser.add_argument('--create-qa', dest='create_qa', action='store_true', help='create QA run ticket')
557559
parser.add_argument('--debug', dest='debug', action='store_true', help='turn debugging on')
558560
parser.add_argument('--debug-build', dest='debug_build', action='store_true', help='append -debug to branch name prompting ceph-build to build with CMAKE_BUILD_TYPE=Debug')
561+
parser.add_argument('--branch-name-append', dest='branch_append', action='store', help='append string to branch name')
559562
parser.add_argument('--git-dir', dest='git', action='store', default=git_dir, help='git directory')
560563
parser.add_argument('--label', dest='label', action='store', default=default_label, help='label PRs for testing')
561564
parser.add_argument('--merge-branch-name', dest='merge_branch_name', action='store', default=False, help='name of the branch for merge messages')

0 commit comments

Comments
 (0)