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.2.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for gerrit_robo-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9011144f9b2aaa39559deae209a618ad6c241674a1eedbf9d3f5788b5df2fb56 |
|
MD5 | dc960416028be1d0bee2f1b59773e3e2 |
|
BLAKE2b-256 | 61843a66042b612db0db0fdb7feea25ec17c4a797ae06068412cca6dd2126144 |