Interface to the Gerrit REST API.
Bases: object
Interface to the Gerrit REST API.
| Parameters: |
|
|---|
Send HTTP DELETE to the endpoint.
| Parameters: | endpoint (str) – The endpoint to send to. |
|---|---|
| Returns: | JSON decoded result. |
| Raises : | requests.RequestException on timeout or connection error. |
Send HTTP GET to the endpoint.
| Parameters: | endpoint (str) – The endpoint to send to. |
|---|---|
| Returns: | JSON decoded result. |
| Raises : | requests.RequestException on timeout or connection error. |
Make the full url for the endpoint.
| Parameters: | endpoint (str) – The endpoint. |
|---|---|
| Returns: | The full url. |
Send HTTP POST to the endpoint.
| Parameters: | endpoint (str) – The endpoint to send to. |
|---|---|
| Returns: | JSON decoded result. |
| Raises : | requests.RequestException on timeout or connection error. |
Send HTTP PUT to the endpoint.
| Parameters: | endpoint (str) – The endpoint to send to. |
|---|---|
| Returns: | JSON decoded result. |
| Raises : | requests.RequestException on timeout or connection error. |
Submit a review.
| Parameters: |
|
|---|---|
| Returns: | JSON decoded result. |
| Raises : | requests.RequestException on timeout or connection error. |
Bases: object
Encapsulation of a Gerrit review.
| Parameters: |
|
|---|
Add inline comments.
| Parameters: | comments (dict) – Comments to add. |
|---|
Usage:
add_comments([{'filename': 'Makefile',
'line': 10,
'message': 'inline message'}])
add_comments([{'filename': 'Makefile',
'range': {'start_line': 0,
'start_character': 1,
'end_line': 0,
'end_character': 5},
'message': 'inline message'}])