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

Optional specify changes query endpoint from /a/changes to /changes? #47

Closed krzyzacy closed 6 years ago

krzyzacy commented 6 years ago

Currently with client.QueryChanges() call, I got

Get ${GERRIT_HOST}.googlesource.com/a/changes/?n=5\u0026o=CURRENT_REVISION\u0026q=project:test-infra: unsupported protocol scheme

while the API endpoint for us is suppose to be

${GERRIT_HOST}.googlesource.com/changes/

is there a way to get around? Thanks!

krzyzacy commented 6 years ago

(didn't see https://github.com/andygrunwald/go-gerrit/blob/3a745956727c142403ea49feceb066a35459b759/gerrit.go#L331-L335)