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>
This commit is contained in:
Mike Frysinger
2020-02-24 15:38:07 -05:00
committed by David Pursehouse
parent d957ec6a83
commit fc1b18ae9e
3 changed files with 39 additions and 11 deletions

View File

@@ -201,6 +201,7 @@ class ReviewableBranch(object):
dryrun=False,
auto_topic=False,
hashtags=(),
labels=(),
draft=False,
private=False,
notify=None,
@@ -213,6 +214,7 @@ class ReviewableBranch(object):
dryrun=dryrun,
auto_topic=auto_topic,
hashtags=hashtags,
labels=labels,
draft=draft,
private=private,
notify=notify,
@@ -1346,6 +1348,7 @@ class Project(object):
dryrun=False,
auto_topic=False,
hashtags=(),
labels=(),
draft=False,
private=False,
notify=None,
@@ -1406,6 +1409,7 @@ class Project(object):
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]]