diff options
author | Mike Frysinger <vapier@google.com> | 2020-02-24 15:38:07 -0500 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2020-02-24 23:35:47 +0000 |
commit | fc1b18ae9e39afc69b37ef4ada7a990e74b2c075 (patch) | |
tree | 1041653f3c0e3c1917fff2939c5e9af0850c5071 /project.py | |
parent | d957ec6a834e333a3812546911f786b0c20b808f (diff) | |
download | git-repo-fc1b18ae9e39afc69b37ef4ada7a990e74b2c075.tar.gz |
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>
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -201,6 +201,7 @@ class ReviewableBranch(object): | |||
201 | dryrun=False, | 201 | dryrun=False, |
202 | auto_topic=False, | 202 | auto_topic=False, |
203 | hashtags=(), | 203 | hashtags=(), |
204 | labels=(), | ||
204 | draft=False, | 205 | draft=False, |
205 | private=False, | 206 | private=False, |
206 | notify=None, | 207 | notify=None, |
@@ -213,6 +214,7 @@ class ReviewableBranch(object): | |||
213 | dryrun=dryrun, | 214 | dryrun=dryrun, |
214 | auto_topic=auto_topic, | 215 | auto_topic=auto_topic, |
215 | hashtags=hashtags, | 216 | hashtags=hashtags, |
217 | labels=labels, | ||
216 | draft=draft, | 218 | draft=draft, |
217 | private=private, | 219 | private=private, |
218 | notify=notify, | 220 | notify=notify, |
@@ -1346,6 +1348,7 @@ class Project(object): | |||
1346 | dryrun=False, | 1348 | dryrun=False, |
1347 | auto_topic=False, | 1349 | auto_topic=False, |
1348 | hashtags=(), | 1350 | hashtags=(), |
1351 | labels=(), | ||
1349 | draft=False, | 1352 | draft=False, |
1350 | private=False, | 1353 | private=False, |
1351 | notify=None, | 1354 | notify=None, |
@@ -1406,6 +1409,7 @@ class Project(object): | |||
1406 | if auto_topic: | 1409 | if auto_topic: |
1407 | opts += ['topic=' + branch.name] | 1410 | opts += ['topic=' + branch.name] |
1408 | opts += ['t=%s' % p for p in hashtags] | 1411 | opts += ['t=%s' % p for p in hashtags] |
1412 | opts += ['l=%s' % p for p in labels] | ||
1409 | 1413 | ||
1410 | opts += ['r=%s' % p for p in people[0]] | 1414 | opts += ['r=%s' % p for p in people[0]] |
1411 | opts += ['cc=%s' % p for p in people[1]] | 1415 | opts += ['cc=%s' % p for p in people[1]] |