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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gerrit_robo-0.0.2.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gerrit_robo-0.0.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file gerrit_robo-0.0.2.tar.gz.

File metadata

  • Download URL: gerrit_robo-0.0.2.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for gerrit_robo-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a36508ec01b4f6958bf862b26ea7fff8cbeaf1095c9b159fec78bbfe745b7c49
MD5 1a78a85e66240a0b0b15ca8f312954d5
BLAKE2b-256 c21364e7992815a605a0ac432db7f84b6ddfe10c80ad00d1200527acfebfa1f9

See more details on using hashes here.

File details

Details for the file gerrit_robo-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: gerrit_robo-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for gerrit_robo-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9011144f9b2aaa39559deae209a618ad6c241674a1eedbf9d3f5788b5df2fb56
MD5 dc960416028be1d0bee2f1b59773e3e2
BLAKE2b-256 61843a66042b612db0db0fdb7feea25ec17c4a797ae06068412cca6dd2126144

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page