andygrunwald / go-gerrit

Go client/library for Gerrit Code Review
https://godoc.org/github.com/andygrunwald/go-gerrit
MIT License
96 stars 40 forks source link

Where to get the revisionID for the GetComment API ? #102

Closed victory460 closed 2 years ago

victory460 commented 2 years ago

https://github.com/andygrunwald/go-gerrit/blob/ff14d0674afb9b172cf324af84466666c3ac55c9/changes_revision.go#L199

Where or how to get the revisionID for the GetComment API ? Thanks a lot.

dmitshur commented 2 years ago

Take a look at the the linked Gerrit API documentation. If you want to find all comments on a given change, you might want to start with something like the List Change Comments endpoint. From there, you’ll know the IDs of comments, and also the revision ID that each comment is associated with.

victory460 commented 2 years ago

Thanks!