Tools for working with Bugzilla make sure to install pip package python-bugzilla
You can install it by running:
pip install git+https://github.com/ronniel1/bztools
If you do not want to manage the virtualenv, you can use pipx:
sudo dnf install pipx
Then, you can run it with or without installation. Without:
pipx run --no-cache --spec git+https://github.com/ronniel1/bztools.git bzclone --help
With installation:
pipx install git+https://github.com/ronniel1/bztools.git
bzclone --help
You can run bztools with either your username & password as well with your bugzilla API key. netrc formatted file.
netrc apikey file example:
machine bugzilla.redhat.com login apikey password otZjhy1U4nYRlaGUJ2IVR5AIdJCiAy1z6yuGWApr
netrc username password file example:
machine bugzilla.redhat.com login ronniel1 password my-very-secret-pw
usage: bzclone [-h] [--netrc NETRC | -bup BUGZILLA_USER_PASSWORD] -i BZ_ID
login options:
--netrc NETRC netrc file
-bup BUGZILLA_USER_PASSWORD, --bugzilla-user-password BUGZILLA_USER_PASSWORD
Bugzilla username and password in the format of user:pass
usage: e2e-auto-verified [-h]
[--netrc NETRC | -bup BUGZILLA_USER_PASSWORD | -jup JIRA_USER_PASSWORD]
-u URLQUERY
[-r {assisted-installer,assisted-service,assisted-installer-agent} [{assisted-installer,assisted-service,assisted-installer-agent} ...]]
-t TO_COMMITS [TO_COMMITS ...] [-f FROM_RELATIVE_DATE]
[-d] [-i INITIAL_STATUS] [-c CHANGE_STATUS]
[-b BZ_OVERRIDE [BZ_OVERRIDE ...]]
git clone https://github.com/ronniel1/bztools
cd bztools
pipenv install --dev
pipenv run pre-commit install -t pre-commit
pipenv run pre-commit install -t pre-push