API to check if a gerrit change is submittable?

202 views
Skip to first unread message

Sharath Gupta

unread,
Sep 26, 2019, 6:02:55 PM9/26/19
to Repo and Gerrit Discussion
Hi Gerrit experts

Is there an API in Gerrit I can use to check if a change can be submiitted without submitting it? (Check if all code-reviews are done and nothing is pending)

I know I can see "Ready to submit" label from Gerrit UI, but I want to see if it can be found out using any API.

Thanks
Sharath

Marco Miller

unread,
Sep 26, 2019, 7:23:56 PM9/26/19
to Repo and Gerrit Discussion
On Thursday, September 26, 2019 at 6:02:55 PM UTC-4, Sharath Gupta wrote:

Is there an API in Gerrit I can use to check if a change can be submiitted without submitting it? (Check if all code-reviews are done and nothing is pending)

I know I can see "Ready to submit" label from Gerrit UI, but I want to see if it can be found out using any API.

You can try this query option [1] from the Changes REST API:
Reply all
Reply to author
Forward
0 new messages