upload: allow users to set labels when uploading
Bug: https://crbug.com/gerrit/11801
Change-Id: I060465105b4e68ddfc815e572f62bf5dac2c1ffd
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/256614
Tested-by: Mike Frysinger <vapier@google.com>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
diff --git a/project.py b/project.py
index 3138eb1..66a4b3b 100644
--- a/project.py
+++ b/project.py
@@ -201,6 +201,7 @@
dryrun=False,
auto_topic=False,
hashtags=(),
+ labels=(),
draft=False,
private=False,
notify=None,
@@ -213,6 +214,7 @@
dryrun=dryrun,
auto_topic=auto_topic,
hashtags=hashtags,
+ labels=labels,
draft=draft,
private=private,
notify=notify,
@@ -1346,6 +1348,7 @@
dryrun=False,
auto_topic=False,
hashtags=(),
+ labels=(),
draft=False,
private=False,
notify=None,
@@ -1406,6 +1409,7 @@
if auto_topic:
opts += ['topic=' + branch.name]
opts += ['t=%s' % p for p in hashtags]
+ opts += ['l=%s' % p for p in labels]
opts += ['r=%s' % p for p in people[0]]
opts += ['cc=%s' % p for p in people[1]]