Giter Site home page Giter Site logo

gerrit_tools's Introduction

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

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.

$ gerrit_tools ...some command...
Enter value for GERRIT_URL: gerrit.yourserver.org
Enter value for GERRIT_PORT: 29418
Enter value for GERRIT_USER: [email protected]
Enter value for GERRIT_API_TOKEN: <TOKEN>

<TOKEN> is generated here: [Gerrit -> Settings -> HTTP Credentials]

Usage

Example deleting some/temp/branch on all repositories:

$ gerrit_tools branch delete some/temp/branch

Example copying src/branch to new dst/branch on all repositories:

$ 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.

$ gerrit_tools repo upload <new_branc_name>

gerrit_tools's People

Contributors

smotyrev avatar

Stargazers

Ilya Malakhov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.