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.
From: repo-discuss@googlegroups.com [mailto:repo-discuss@googlegroups.com] On Behalf Of Anthony Wong
Sent: Thursday, September 20, 2012 7:59 AM
To: repo-discuss@googlegroups.com
Subject: How can a hook script know the draft status of a change?
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
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en