git-query
A Git plugin to look up stuff like pending reviews, review URLs, etc from Gerrit
Setup
sudo pip install git-query
Configuration
Add the following lines to your .bash_profile:
export GERRIT_HOST='http://gerrit.example.com' export GERRIT_USERNAME='your_username' export GERRIT_TOKEN='your_api_token' # explained below
Don’t forget to source (or reset your terminal session)!
Generating a Gerrit API Token
Go to your Settings in Gerrit (in the menu when you click on your name in the top-right)
Click HTTP Password
Click Generate Password
Usage
You can either use git query or git ?. You will need to be in a repo that exists in Gerrit.
# get info from Gerrit about the current commit git query git ? # list all Gerrit IDs for the current repo git query -a git query --all git ? -a git ? --all # get info from Gerrit about a specific ID git query 1234 git ? 1234
Metadata
Release files for git-query 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| git-query-0.0.2.tar.gz | 4.2 kB | Without provenance | Details for git-query-0.0.2.tar.gz |
Release files / git-query-0.0.2.tar.gz
| Download URL | git-query-0.0.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09f233c38b2d10ca895082a317e7b57918c6d6238898a387b8f54d8792115f73
|
|
BLAKE2b-256 checksum How to use checksums |
b6d6c5be287594a0f48beb84e61c386b5ed65ac501083b9b4d847d0f662abc02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for git-query 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.