diff options
| author | Sergiy Belozorov <sergiyb@chromium.org> | 2024-03-04 19:48:52 +0100 |
|---|---|---|
| committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-03-04 18:50:24 +0000 |
| commit | 96edb9b573d6c58b1990090c467ce0c2809bc0b1 (patch) | |
| tree | 18a10da00d18ec0e287a6d4c69a0764becd177d9 /subcmds/upload.py | |
| parent | 5554572f02537b8646139d59ab520e59e1d5f7b3 (diff) | |
| download | git-repo-96edb9b573d6c58b1990090c467ce0c2809bc0b1.tar.gz | |
upload: Add support for setting patchset description
Bug: 308467447
Change-Id: I7abcbc98131b826120fc9ab85d5b889f90db4b0a
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/355968
Tested-by: Sergiy Belozorov <sergiyb@chromium.org>
Reviewed-by: Mike Frysinger <vapier@google.com>
Commit-Queue: Sergiy Belozorov <sergiyb@chromium.org>
Diffstat (limited to 'subcmds/upload.py')
| -rw-r--r-- | subcmds/upload.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index 4bcdfaf9..001453fe 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
| @@ -245,6 +245,11 @@ Gerrit Code Review: https://www.gerritcodereview.com/ | |||
| 245 | help="add a label when uploading", | 245 | help="add a label when uploading", |
| 246 | ) | 246 | ) |
| 247 | p.add_option( | 247 | p.add_option( |
| 248 | "--pd", | ||
| 249 | "--patchset-description", | ||
| 250 | help="description for patchset", | ||
| 251 | ) | ||
| 252 | p.add_option( | ||
| 248 | "--re", | 253 | "--re", |
| 249 | "--reviewers", | 254 | "--reviewers", |
| 250 | type="string", | 255 | type="string", |
| @@ -655,6 +660,7 @@ Gerrit Code Review: https://www.gerritcodereview.com/ | |||
| 655 | dest_branch=destination, | 660 | dest_branch=destination, |
| 656 | validate_certs=opt.validate_certs, | 661 | validate_certs=opt.validate_certs, |
| 657 | push_options=opt.push_options, | 662 | push_options=opt.push_options, |
| 663 | patchset_description=opt.patchset_description, | ||
| 658 | ) | 664 | ) |
| 659 | 665 | ||
| 660 | branch.uploaded = True | 666 | branch.uploaded = True |
