Skip to main content

Gerrit CLI Tool

Project description

gerrit_tools

Common tools to work with a bunch of Gerrit repositories, with help of REST API and Command Line Tools

Install

Python 3.5 required `commandline pip install gerrit-tools `

Setup

On first run script will prompt to input several params related to your Gerrit instance. Configuration is stored in ~/.config/gerrit_tools/config file. `commandline $ gerrit_tools ...some command... Enter value for GERRIT_URL: gerrit.yourserver.org Enter value for GERRIT_PORT: 29418 Enter value for GERRIT_USER: admin@yourserver.org Enter value for GERRIT_API_TOKEN: <TOKEN> ` <TOKEN> is generated here: [Gerrit -> Settings -> HTTP Credentials]

Usage

Example deleting some/temp/branch on all repositories: `commandline $ gerrit_tools branch delete some/temp/branch `

Example copying src/branch to new dst/branch on all repositories: `commandline $ gerrit_tools branch copy src/branch dst/branch `

Upload new repo branches from local repo to gerrit. Local repos can be filtered by xml tag and by “remote” attribute. Option –create can be used to try to create remote repository, if absent, before push. `commandline $ gerrit_tools repo upload <new_branc_name> `

Project details


Download files

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

Source Distribution

gerrit_tools-0.0.8.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gerrit_tools-0.0.8-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file gerrit_tools-0.0.8.tar.gz.

File metadata

  • Download URL: gerrit_tools-0.0.8.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for gerrit_tools-0.0.8.tar.gz
Algorithm Hash digest
SHA256 26fc1dc0293b9a432046b2c0eb746e19b136239574876caf75bf51f3cd626e82
MD5 2035311716254855d3f0922350dc9b47
BLAKE2b-256 1699664ebc744c1828dddd95c0f592755d884d99dd17085f3a0e0f3eb2e0f4fd

See more details on using hashes here.

File details

Details for the file gerrit_tools-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: gerrit_tools-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for gerrit_tools-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4e6096cb84a232822bb262cd9b93afa7454f00dba02f9ffb08fb8a9a9584dd18
MD5 490fc1a300d8f1ad8d3ff09b8b9de52b
BLAKE2b-256 7eef4bc9eb512264121e10c3ebc18f077b242003df91889707734ac1cf6e3174

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page