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 --- project.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'project.py') diff --git a/project.py b/project.py index f9524a09..07102d42 100644 --- a/project.py +++ b/project.py @@ -205,6 +205,7 @@ class ReviewableBranch(object): private=False, notify=None, wip=False, + ready=False, dest_branch=None, validate_certs=True, push_options=None): @@ -217,6 +218,7 @@ class ReviewableBranch(object): private=private, notify=notify, wip=wip, + ready=ready, dest_branch=dest_branch, validate_certs=validate_certs, push_options=push_options) @@ -1003,6 +1005,7 @@ class Project(object): private=False, notify=None, wip=False, + ready=False, dest_branch=None, validate_certs=True, push_options=None): @@ -1072,6 +1075,8 @@ class Project(object): opts += ['private'] if wip: opts += ['wip'] + if ready: + opts += ['ready'] if opts: ref_spec = ref_spec + '%' + ','.join(opts) cmd.append(ref_spec) -- cgit v1.2.3-54-g00ecf