Skip to main content

gerrit-robo

This is a very thin wrapper around the gerrit api to allow robots to add comments to a patchset (and maybe more later)

Please note, that this a work in progress and is not usable, nor tested

Usage

gerrit = Gerrit('http://review.domain.de', 'projectname').with_auth(
    'your_username', '<<http_password>>')
change_id = 'I09d1b8dc8d9eb072d4bd387f4c75c80cda43ebd5'

review = Review('The bot reviewed')
review.comment('README.md', [1, 3], 'A robot comment')
review.comment('README.md', 4, 'This is a comment, too')
gerrit.send_review(change_id, review)

Generate HTTP Password

You cannot login with your normal password. Rather:

  1. Login into Gerrit
  2. Click on your profile image > Settings > HTTP Credentials
  3. Generate New Password
  4. Copy it immediatly as it will be lost ast soon as you close this moda
  5. Inset it into your source-code under gerrit.with_auth

(found here)

Metadata

Release files for gerrit-robo 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gerrit-robo 0.0.2
File Size Uploaded
gerrit_robo-0.0.2.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gerrit-robo 0.0.2
File Interpreter ABI Platform
gerrit_robo-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / gerrit_robo-0.0.2.tar.gz

Download URL gerrit_robo-0.0.2.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a36508ec01b4f6958bf862b26ea7fff8cbeaf1095c9b159fec78bbfe745b7c49
BLAKE2b-256 checksum
How to use checksums
c21364e7992815a605a0ac432db7f84b6ddfe10c80ad00d1200527acfebfa1f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

Release files / gerrit_robo-0.0.2-py3-none-any.whl

Download URL gerrit_robo-0.0.2-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9011144f9b2aaa39559deae209a618ad6c241674a1eedbf9d3f5788b5df2fb56
BLAKE2b-256 checksum
How to use checksums
61843a66042b612db0db0fdb7feea25ec17c4a797ae06068412cca6dd2126144
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page