mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-12-14 08:34:01 +08:00
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:
committed by
David Pursehouse
parent
d957ec6a83
commit
fc1b18ae9e
@@ -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]]
|
||||
|
||||
Reference in New Issue
Block a user