Gerrit Action
Project description
gerritaction
Introduction
gerritaction is a tool used for Gerrit action via Gerrit API.
Prerequisites
- Python >= 3.7.0
Run
git clone https://github.com/craftslab/gerritaction.git
cd gerritaction
pip install -Ur requirements.txt
python action.py --config-file="config.yml" --gerrit-action="delete-reviewer:{account-id,...}" --gerrit-query="since:2021-01-01 until:2021-01-02"
Docker
git clone https://github.com/craftslab/gerritaction.git
cd gerritaction
docker build --no-cache -f Dockerfile -t craftslab/gerritaction:latest .
docker run -it -v /tmp:/tmp craftslab/gerritaction:latest ./gerritaction --config-file="config.yml" --gerrit-action="delete-reviewer:{account-id,...}" --gerrit-query="since:2021-01-01 until:2021-01-02"
Usage
usage: action.py [-h] --config-file CONFIG_FILE --gerrit-action GERRIT_ACTION
--gerrit-query GERRIT_QUERY [-v]
Gerrit Action
optional arguments:
-h, --help show this help message and exit
--config-file CONFIG_FILE
config file (.yml)
--gerrit-action GERRIT_ACTION
gerrit action (add-reviewer:{account-id,...} delete-
reviewer:{account-id,...} add-attention:{account-
id,...} remove-attention:{account-id,...})
--gerrit-query GERRIT_QUERY
gerrit query (status:open since:2021-01-01
until:2021-01-02)
-v, --version show program's version number and exit
Settings
gerritaction parameters can be set in the directory config.
An example of configuration in config.yml:
apiVersion: v1
kind: worker
metadata:
name: gerritaction
spec:
gerrit:
host: http://127.0.0.1/
port: 8080
user: user
pass: pass
query:
option:
- CURRENT_REVISION
License
Project License can be 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
gerritaction-1.1.0.tar.gz
(9.9 kB
view details)
Built Distribution
File details
Details for the file gerritaction-1.1.0.tar.gz
.
File metadata
- Download URL: gerritaction-1.1.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7505f8cc0df2d58ee8d46818a54ca84370fbdf7d912e052ff2b662cc09354b1 |
|
MD5 | 8bb79b4414fe0f0a914af3869ded9ce7 |
|
BLAKE2b-256 | 002db7bc797a81deb9131479652cf52f4897dc928bb3aec4f4e41ccb537f7000 |
File details
Details for the file gerritaction-1.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: gerritaction-1.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eaf427f8a274137175a7d0485b8dc16a92480c894cd144be1732f58fa7f3b3c |
|
MD5 | ec53461daedf49749592a88801e52de4 |
|
BLAKE2b-256 | 18e266dc4d8cfe453f52c73a31cd3b7466ce273554658bf176a3949b411b5149 |