Add --is-draft argument on patchset-created hook
The `--is-draft` argument will be passed with either `true` if the patchset is a draft, or `false` otherwise. This can be used by hooks that need to behave differently if the change is a draft. Change-Id: Idd00efe799bb05b0fd00e917faaccd5c772b1e1f
This commit is contained in:
committed by
Edwin Kempin
parent
29d9ee1974
commit
b53fdcfad0
@@ -232,6 +232,7 @@ public class ChangeHookRunner implements ChangeHooks {
|
||||
|
||||
final List<String> args = new ArrayList<String>();
|
||||
addArg(args, "--change", event.change.id);
|
||||
addArg(args, "--is-draft", patchSet.isDraft() ? "true" : "false");
|
||||
addArg(args, "--change-url", event.change.url);
|
||||
addArg(args, "--project", event.change.project);
|
||||
addArg(args, "--branch", event.change.branch);
|
||||
|
||||
Reference in New Issue
Block a user