From ac76fd3e3a08024493f28913ec0c9660282d5f5b Mon Sep 17 00:00:00 2001 From: William Escande Date: Tue, 2 Aug 2022 16:05:37 -0700 Subject: upload: Add ready flag to remove wip The `--wip` allow to bulk push changed as work-in-progress. This CL intend to allow the opposite opperation by removing the wip mark on the CL and set it to be ready to review Change-Id: If0743c5b14829f77be2def5a8547060d06a5648c Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/342214 Reviewed-by: Mike Frysinger Tested-by: William Escande --- subcmds/upload.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'subcmds/upload.py') diff --git a/subcmds/upload.py b/subcmds/upload.py index 09ee5c02..01d1dea4 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py @@ -190,6 +190,9 @@ Gerrit Code Review: https://www.gerritcodereview.com/ p.add_option('-w', '--wip', action='store_true', dest='wip', default=False, help='upload as a work-in-progress change') + p.add_option('-r', '--ready', + action='store_true', default=False, + help='mark change as ready (clears work-in-progress setting)') p.add_option('-o', '--push-option', type='string', action='append', dest='push_options', default=[], @@ -465,6 +468,7 @@ Gerrit Code Review: https://www.gerritcodereview.com/ private=opt.private, notify=notify, wip=opt.wip, + ready=opt.ready, dest_branch=destination, validate_certs=opt.validate_certs, push_options=opt.push_options) -- cgit v1.2.3-54-g00ecf