go-gerrit
go-gerrit copied to clipboard
Go(lang) client/library for Gerrit Code Review
 
The SubmitRecords field was added to ChangeInfo. The following is an example I obtained through rest request, gerrit:3.10:    my request: 
```Go package main import ( "context" gerrit "github.com/andygrunwald/go-gerrit" "log" ) func main() { ctx := context.Background() instance := "http://127.0.0.1:8080/" client, _ := gerrit.NewClient(ctx, instance, nil) client.Authentication.SetBasicAuth("admin", "xxx") cap, _, err...
As Gerrit had deprecated label functions and migrate to submit-requirements (https://gerrit-review.googlesource.com/Documentation/config-labels.html), our project (Prow, https://docs.prow.k8s.io/docs/overview/) needs to get this submit-requirements info associated with a change.
This contains definitions for all message types present in "JSON stream" messages, produced by the `gerrit stream-events` command, or the webhook plugin. As per the discussion in https://github.com/andygrunwald/go-gerrit/pull/187#issuecomment-2888435509, this is...
patch (optional) - The detail of a patch to be applied as an ApplyPatchInput entity. The **ApplyPatchInput** entity contains information about a patch to apply: **patch (required)** - The patch...
The changes//revisions//patch endpoint in gerrit returns a base64 encoded diff by default, which cannot be marshalled as JSON. Creating a unit test for the patch endpoint results in the 'invalid...
Enables requesting additional data from a change creation.
https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#change-input The response_format_options allows for populating some fields in the response that are excluded by-default, without one needs to query again using a method that supports those options if one...
Create a variant version of the method that has more strict typing and, unlike the current one, correctly specifies the encoding as json. It may be that you would rather...