Groups
Groups
Sign in
Groups
Groups
Repo and Gerrit Discussion
Conversations
About
Send feedback
Help
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 PM
9/19/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
9/19/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
9/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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