go-gerrit icon indicating copy to clipboard operation
go-gerrit copied to clipboard

Go(lang) client/library for Gerrit Code Review

Results 32 go-gerrit issues
Sort by recently updated
recently updated
newest added

![image](https://github.com/user-attachments/assets/3301ff4c-9961-4a15-84f2-1e311aaf8df3) ![image](https://github.com/user-attachments/assets/c1fe276f-cc87-40f3-976c-9887d62f29b9)

The SubmitRecords field was added to ChangeInfo. The following is an example I obtained through rest request, gerrit:3.10: ![image](https://github.com/user-attachments/assets/a626dd00-f0f7-44ec-b184-87ca21cd9e45) ![image](https://github.com/user-attachments/assets/435412f4-a866-4c24-946a-b041103289c1) ![image](https://github.com/user-attachments/assets/a026f4ca-2dcf-4e22-8c3e-614e7d3199b6) my request: ![image](https://github.com/user-attachments/assets/f4a92274-994a-4cde-9da6-5b77ff1bcf8f)

```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...