Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Tool to query info from Gerrit like pending reviews

Project Description

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

  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
Release History

Release History

This version
History Node

0.0.2

History Node

0.0.1

History Node

0.0.1.dev13

History Node

0.0.1.dev12

History Node

0.0.1.dev11

History Node

0.0.1.dev10

History Node

0.0.1.dev8

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
git-query-0.0.2.tar.gz (4.2 kB) Copy SHA256 Checksum SHA256 Source Mar 17, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting