$ git push origin HEAD:refs/for/master
$ git push origin HEAD:refs/for/master
$ git push origin sha1:refs/for/master%merged
$ git push origin HEAD:refs/drafts/master
$ git push origin HEAD:refs/for/master
<amend the commit>
$ git push origin HEAD:refs/drafts/master
change.allowDrafts
option to disable draft workflow
refs/drafts/master
change.allowDrafts
is set to true
on gerrit site
DRAFT = true
from wip-plugin’s UI action:
DRAFT = false
from wip-plugin’s UI action:
$ git push -o wip origin HEAD:refs/for/master
$ git push origin HEAD:refs/for/master%wip
reviewer:self
predicate:
if ("reviewer".equalsIgnoreCase(value)) { return Predicate.and( Predicate.not(new BooleanPredicate(ChangeField.WIP)), ReviewerPredicate.reviewer(args, self())); }
reviewer:self
predicate definition:
reviewer:self -is:wip
[change]
workInProgressByDefault = true
workInProgress
field in ChangeInput entity is set to false
explicitly when creating change per REST API
ready
PushOption is used during the Git push.
INHERIT
, which means that this property is inherited from
the parent project.
[...]
Migrating data to schema 158 ...
> Done (0.000 s)
Migrating data to schema 159 ...
Migrate draft changes to private changes (default is work-in-progress) [y/N]?
Replace draft changes with work_in_progress changes ...
done
> Done (7.917 s)
[...]
private
and thus make them non visible
private
and unmark them:
owner:self is:private
refs/drafts/master
is preserved
git push origin HEAD:refs/drafts/master # 1
<amend 1>
git push origin HEAD:refs/drafts/master # 2
<amend 2>
git push origin HEAD:refs/drafts/master # 3
David Ostrovsky
Mainatainer, Gerrit Code Review