A very thin wrapper around the gerrit API to allow robots to add comments to a patchset
Project description
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:
- Login into Gerrit
- Click on your profile image > Settings > HTTP Credentials
Generate New Password
- Copy it immediatly as it will be lost ast soon as you close this moda
- Inset it into your source-code under
gerrit.with_auth
(found here)
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for gerrit_robo-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04f32299fbd1aae870a3d7aaffc888fe879b6276cd451c692baa869a5d8e8429 |
|
MD5 | 60e826d984f5ab823dd49d68ed976176 |
|
BLAKE2b-256 | 82c3b97f1cbd674e2c07986905d72f94edade25d0378a61f46e2f0dae7e257a0 |