Skip to main content

Tool to query Gerrit info

Project description

A Git plugin to look up stuff like pending reviews, review URLs, etc from Gerrit

Setup
===============
```sudo pip install git+https://github.com/sudocode/git-query.git```

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
======================
1. Go to your Settings in Gerrit (in the menu when you click on your name in the top-right)
2. Click __HTTP Password__
3. 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
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for git-query, version 0.0.1.dev10
Filename, size File type Python version Upload date Hashes
Filename, size git-query-0.0.1.dev10.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page