summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/project.py b/project.py
index 80a6c395..edf0723b 100644
--- a/project.py
+++ b/project.py
@@ -257,7 +257,7 @@ class ReviewableBranch:
257 self, 257 self,
258 people, 258 people,
259 dryrun=False, 259 dryrun=False,
260 auto_topic=False, 260 topic=None,
261 hashtags=(), 261 hashtags=(),
262 labels=(), 262 labels=(),
263 private=False, 263 private=False,
@@ -273,7 +273,7 @@ class ReviewableBranch:
273 branch=self.name, 273 branch=self.name,
274 people=people, 274 people=people,
275 dryrun=dryrun, 275 dryrun=dryrun,
276 auto_topic=auto_topic, 276 topic=topic,
277 hashtags=hashtags, 277 hashtags=hashtags,
278 labels=labels, 278 labels=labels,
279 private=private, 279 private=private,
@@ -1104,7 +1104,7 @@ class Project:
1104 branch=None, 1104 branch=None,
1105 people=([], []), 1105 people=([], []),
1106 dryrun=False, 1106 dryrun=False,
1107 auto_topic=False, 1107 topic=None,
1108 hashtags=(), 1108 hashtags=(),
1109 labels=(), 1109 labels=(),
1110 private=False, 1110 private=False,
@@ -1180,8 +1180,8 @@ class Project:
1180 1180
1181 ref_spec = f"{R_HEADS + branch.name}:refs/for/{dest_branch}" 1181 ref_spec = f"{R_HEADS + branch.name}:refs/for/{dest_branch}"
1182 opts = [] 1182 opts = []
1183 if auto_topic: 1183 if topic is not None:
1184 opts += ["topic=" + branch.name] 1184 opts += [f"topic={topic}"]
1185 opts += ["t=%s" % p for p in hashtags] 1185 opts += ["t=%s" % p for p in hashtags]
1186 # NB: No need to encode labels as they've been validated above. 1186 # NB: No need to encode labels as they've been validated above.
1187 opts += ["l=%s" % p for p in labels] 1187 opts += ["l=%s" % p for p in labels]