Commit c6787971 authored by agable's avatar agable Committed by Commit bot

Use 'draft' status to restrict access to private Gerrit reviews

R=andybons@chromium.org, tandrii@chromium.org

Review-Url: https://codereview.chromium.org/2324283002
parent d1d31d5d
......@@ -2620,6 +2620,9 @@ class _GerritChangelistImpl(_ChangelistCodereviewBase):
if reviewers:
refspec_opts.extend('r=' + email.strip() for email in reviewers)
if options.private:
refspec_opts.append('draft')
refspec_suffix = ''
if refspec_opts:
refspec_suffix = '%' + ','.join(refspec_opts)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment