How can a hook script know the draft status of a change?

23 views
Skip to first unread message

Anthony Wong

unread,
Sep 19, 2012, 6:59:08 PM9/19/12
to repo-d...@googlegroups.com
Hi all--
 
I don't see any parameters that can be used to determine if a change is in the draft status (in patchset-created hook).
 
Do I need to use the gerrit query command?
 
--Thanks,
Anthony

Pursehouse, David

unread,
Sep 19, 2012, 8:10:35 PM9/19/12
to Anthony Wong, repo-d...@googlegroups.com
Hi,

This was discussed yesterday. Currently there is no way for the patchset-created hook to know the draft status.

There's a change up for review [1] that adds an `--is-draft` argument. In the meantime, running a query is the only way.

[1] https://gerrit-review.googlesource.com/37901

--
David Pursehouse
Configuration Manager
Sony Mobile Communications Japan, Inc.
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

Anthony Wong

unread,
Sep 20, 2012, 2:44:18 PM9/20/12
to repo-d...@googlegroups.com, Anthony Wong
Hi, oops, didn't see it ... thanks  (he beat me to the question by a couple of days :-)  )
Reply all
Reply to author
Forward
0 new messages