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.0.1.tar.gz
(9.8 kB
view details)
Built Distribution
File details
Details for the file gerritaction-1.0.1.tar.gz
.
File metadata
- Download URL: gerritaction-1.0.1.tar.gz
- Upload date:
- Size: 9.8 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 | a1e4fbc9660a95104bb47f3b127173f966534a8852f9461a25ef40ca8171a5b7 |
|
MD5 | 5f6637c88566a349bfce273e2bc3eaa6 |
|
BLAKE2b-256 | c7eda78b8feb8cfa6f1e1b623a3021b37715c127097af495fea62408d592e461 |
File details
Details for the file gerritaction-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: gerritaction-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 12.8 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 | ce2c2fc821faeccaa90e5d764d486d0994cdc27410236b5893f7eb1d7cd25966 |
|
MD5 | c611374d55ed33dfe1bfd683a28e971c |
|
BLAKE2b-256 | 49a2ab296df16f5aa6e7d2ec6a1f49fa37c9a5bf6142722d1e7d35a53c5e70d3 |