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  that adds an `--is-draft` argument. In the meantime, running a query is the only way.
Sony Mobile Communications Japan, Inc.
From: email@example.com [mailto:firstname.lastname@example.org] On Behalf Of Anthony Wong
Sent: Thursday, September 20, 2012 7:59 AM
Subject: How can a hook script know the draft status of a change?
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?
To unsubscribe, email email@example.com
More info at http://groups.google.com/group/repo-discuss?hl=en