Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How can a hook script know the draft status of a change?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anthony Wong  
View profile  
 More options Sep 19 2012, 6:59 pm
From: Anthony Wong <won...@gmail.com>
Date: Wed, 19 Sep 2012 15:59:08 -0700 (PDT)
Local: Wed, Sep 19 2012 6:59 pm
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pursehouse, David  
View profile  
 More options Sep 19 2012, 8:11 pm
From: "Pursehouse, David" <David.Purseho...@sonymobile.com>
Date: Thu, 20 Sep 2012 09:10:35 +0900
Local: Wed, Sep 19 2012 8:10 pm
Subject: RE: How can a hook script know the draft status of a change?
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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony Wong  
View profile  
 More options Sep 20 2012, 2:44 pm
From: Anthony Wong <won...@gmail.com>
Date: Thu, 20 Sep 2012 11:44:18 -0700 (PDT)
Local: Thurs, Sep 20 2012 2:44 pm
Subject: Re: How can a hook script know the draft status of a change?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions Older topic »