Skip to content

Commit f9f898f

Browse files
Add 4.X label to PRs automatically (emscripten-forge#3816)
1 parent c929090 commit f9f898f

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

emci/git_utils.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,21 +109,14 @@ def make_pr_for_recipe(recipe_dir, pr_title, target_branch_name, branch_name, au
109109
subprocess.check_call(['gh', 'repo', 'set-default', 'emscripten-forge/recipes'], cwd=os.getcwd())
110110

111111

112-
args = ['gh', 'pr', 'create',
113-
'-B', target_branch_name,
112+
args = ['gh', 'pr', 'create',
113+
'-B', target_branch_name,
114114
'--title', pr_title, '--body', 'Beep-boop-beep! Whistle-whistle-woo!',
115115
'--label', 'Automerge' if automerge else 'Needs Tests'
116116
]
117-
# if target_branch_name == 'main':
118-
# extra_label = "3.1.45"
119-
# elif target_branch_name == "emscripten-3.1.73":
120-
# extra_label = "3.1.73"
121-
# else:
122-
# extra_label = None
123-
extra_label = None
124-
125-
if extra_label is not None:
126-
args.extend(['--label', extra_label])
117+
118+
if target_branch_name == "emscripten-4x"
119+
args.extend(['--label', '4.X'])
127120

128121
# call gh to create a PR
129122
subprocess.check_call(args, cwd=os.getcwd())

0 commit comments

Comments
 (0)