You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go-gerrit follows the [Go Release Policy](https://golang.org/doc/devel/release.html#policy).
27
-
This means, we support the current + previous Go version releases.
25
+
_go-gerrit_ follows the [Go Release Policy](https://golang.org/doc/devel/release.html#policy).
26
+
This means we support the current + 2 previous Go versions.
28
27
29
28
It is go gettable ...
30
29
@@ -48,18 +47,18 @@ $ make vet staticcheck
48
47
49
48
## API / Usage
50
49
51
-
Please have a look at the [GoDoc documentation](https://pkg.go.dev/github.com/andygrunwald/go-gerrit) for a detailed API description.
50
+
Have a look at the [GoDoc documentation](https://pkg.go.dev/github.com/andygrunwald/go-gerrit) for a detailed API description.
52
51
53
-
The [Gerrit Code Review - REST API](https://gerrit-review.googlesource.com/Documentation/rest-api.html) was the base document.
52
+
The [Gerrit Code Review - REST API](https://gerrit-review.googlesource.com/Documentation/rest-api.html) was the foundation document.
54
53
55
54
### Authentication
56
55
57
-
Gerrit support multiple ways for [authentication](https://gerrit-review.googlesource.com/Documentation/rest-api.html#authentication).
56
+
Gerrit supports multiple ways for [authentication](https://gerrit-review.googlesource.com/Documentation/rest-api.html#authentication).
58
57
59
58
#### HTTP Basic
60
59
61
60
Some Gerrit instances (like [TYPO3](https://review.typo3.org/)) has [auth.gitBasicAuth](https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#auth.gitBasicAuth) activated.
62
-
With this you can authenticate with HTTP Basic like this:
61
+
With this, you can authenticate with HTTP Basic like this:
In the examples chapter below you will find a few more examples.
124
-
If you miss one or got a question how to do something please [open a new issue](https://github.com/andygrunwald/go-gerrit/issues/new) with your question.
125
-
We will be happy to answer them.
126
-
127
120
## Examples
128
121
129
-
Further a few examples how the API can be used.
130
-
A few more examples are available in the [GoDoc examples section](https://pkg.go.dev/github.com/andygrunwald/go-gerrit#pkg-examples).
122
+
More examples are available
123
+
124
+
* in the [GoDoc examples section](https://pkg.go.dev/github.com/andygrunwald/go-gerrit#pkg-examples).
// chromiumos/platform/depthcharge - State: ACTIVE
187
-
// external/github.com/maruel/subcommands - State: ACTIVE
188
-
// external/junit - State: ACTIVE
190
+
// chromiumos/third_party/bluez - State: ACTIVE
191
+
// external/github.com/Polymer/ShadowDOM - State: ACTIVE
192
+
// external/github.com/domokit/mojo_sdk - State: ACTIVE
189
193
// ...
190
194
}
191
195
```
192
196
193
197
### Query changes
194
198
195
-
Get some changes of the [kernel/common project](https://android-review.googlesource.com/#/q/project:kernel/common) from the [Android](http://source.android.com/)[Gerrit Review System](https://android-review.googlesource.com/).
199
+
Get some changes of the [kernel/common project](https://android-review.googlesource.com/#/q/project:kernel/common) from the [Android](http://source.android.com/)[Gerrit Review System](https://android-review.googlesource.com/).
// Project: kernel/common -> dm-verity: Add modes and emit uevent on corrupted blocks -> https://android-review.googlesource.com/169572
229
+
// Project: kernel/common -> ANDROID: GKI: Update symbols to symbol list -> https://android-review.googlesource.com/1830553
230
+
// Project: kernel/common -> ANDROID: db845c_gki.fragment: Remove CONFIG_USB_NET_AX8817X from fragment -> https://android-review.googlesource.com/1830439
231
+
// Project: kernel/common -> ANDROID: Update the ABI representation -> https://android-review.googlesource.com/1830469
224
232
// ...
225
233
}
226
234
```
227
235
228
-
## FAQ
236
+
## Frequently Asked Questions (FAQ)
229
237
230
238
### How is the source code organized?
231
239
232
-
The source code organisation was inspired by [go-github by Google](https://github.com/google/go-github).
240
+
The source code organization is inspired by [go-github by Google](https://github.com/google/go-github).
233
241
234
-
Every REST API Endpoint (e.g. [/access/](https://gerrit-review.googlesource.com/Documentation/rest-api-access.html) or [/changes/](https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html)) is coupled in a service (e.g. [AccessService in access.go](./access.go) or [ChangesService in changes.go](./changes.go)).
235
-
Every service is part of [gerrit.Client](./gerrit.go) as a member variable.
242
+
Every REST API Endpoint (e.g. [`/access/`](https://gerrit-review.googlesource.com/Documentation/rest-api-access.html), [`/changes/`](https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html)) is coupled in a service (e.g. [`AccessService` in access.go](./access.go), [`ChangesService` in changes.go](./changes.go)).
243
+
Every service is part of [`gerrit.Client`](./gerrit.go) as a member variable.
236
244
237
-
gerrit.Client can provide basic helper functions to avoid unnecessary code duplications such as building a new request, parse responses and so on.
245
+
`gerrit.Client` can provide essential helper functions to avoid unnecessary code duplications, such as building a new request or parse responses.
238
246
239
-
Based on this structure implementing a new API functionality is straight forwarded. Here is an example of *ChangeService.DeleteTopic* / [DELETE /changes/{change-id}/topic](https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#delete-topic):
247
+
Based on this structure, implementing a new API functionality is straight forward.
248
+
Here is an example of `*ChangeService.DeleteTopic*` / [DELETE /changes/{change-id}/topic](https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#delete-topic):
The library was implemented based on the REST API of Gerrit version 2.11.3-1230-gb8336f1 and tested against this version.
251
260
252
261
This library might be working with older versions as well.
253
-
If you notice an incompatibility [open a new issue](https://github.com/andygrunwald/go-gerrit/issues/new) or try to fix it.
254
-
We welcome contribution!
255
-
256
-
257
-
### What about adding code to support the REST API of an optional plugin?
262
+
If you notice an incompatibility [open a new issue](https://github.com/andygrunwald/go-gerrit/issues/new).
263
+
We also appreciate your Pull Requests to improve this library.
264
+
We welcome contributions!
258
265
259
-
It will depend on the plugin, you are welcome to [open a new issue](https://github.com/andygrunwald/go-gerrit/issues/new) first to propose the idea if you wish.
260
-
As an example the addition of support for events-log plugin was supported because the plugin itself is fairly
261
-
popular and the structures that the REST API uses could also be used by `gerrit stream-events`.
266
+
### What about adding code to support the REST API of an (optional) plugin?
262
267
268
+
It will depend on the plugin, and you are welcome to [open a new issue](https://github.com/andygrunwald/go-gerrit/issues/new) first to propose the idea and use-case.
269
+
As an example, the addition of support for `events-log` plugin was supported because the plugin itself is fairly
270
+
popular.
271
+
The structures that the REST API uses could also be used by `gerrit stream-events`.
263
272
264
273
## License
265
274
266
-
This project is released under the terms of the [MIT license](http://en.wikipedia.org/wiki/MIT_License).
275
+
This project is released under the terms of the [MIT license](https://choosealicense.com/licenses/mit/).
0 commit comments