Getting the related changes info from Gerrit

304 views
Skip to first unread message

Khai Do

unread,
Jul 17, 2014, 7:24:12 AM7/17/14
to repo-d...@googlegroups.com
The Gerrit UI shows information on related changes, conflicts with, same topics, and cherry picks [1].   I was wondering if there's anyway to get that data using the REST api?



Saša Živkov

unread,
Jul 17, 2014, 7:31:05 AM7/17/14
to Khai Do, repo-d...@googlegroups.com
On Thu, Jul 17, 2014 at 1:24 PM, Khai Do <zaro...@gmail.com> wrote:
The Gerrit UI shows information on related changes, conflicts with, same topics, and cherry picks [1].   I was wondering if there's anyway to get that data using the REST api?
Yes, it is done using the change query REST endpoint [2]

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Edwin Kempin

unread,
Jul 17, 2014, 7:37:06 AM7/17/14
to Saša Živkov, Khai Do, repo-d...@googlegroups.com
2014-07-17 13:31 GMT+02:00 Saša Živkov <ziv...@gmail.com>:



On Thu, Jul 17, 2014 at 1:24 PM, Khai Do <zaro...@gmail.com> wrote:
The Gerrit UI shows information on related changes, conflicts with, same topics, and cherry picks [1].   I was wondering if there's anyway to get that data using the REST api?
Yes, it is done using the change query REST endpoint [2]
Yes, you can see in the RelatedChanges class how these quries are constructed [3].

The "Related Changes" tab is an exception, it's populated from an own REST endpoint:
  GET /changes/{change-id}/revisions/{revision-id}/related

Documentation for this REST endpoint seems to be missing.
Reply all
Reply to author
Forward
0 new messages