gitbarry

Customizable git workflow extension


Keywords
development-tools, git-addons, git-flow, project-management, python
License
MIT
Install
pip install gitbarry==0.2

Documentation

PyPI version Build Status Coverage Status

Gitflow-inspired, but flexible and customizable project management tool.

Quick demo:

$ git barry start feature awesome  # Create and switch to feature branch
$ git barry finish  # Merge with master then delete branch, switch to master
$ git barry start release v0.9.8  # Create and switch to release branch
$ git barry finish  # Tag branch, merge with master

Installation

From source

$ python3 setup.py install

From pypi

$ pip install gitbarry

Usage

Command line syntax

git barry <reason> <type> [name]
  • reason - start or finish
  • type - one types from ini
  • name - name of task when start

Start new feature

$ git barry start feature <name>

Finish feature

$ git barry finish

Switch between tasks

$ git barry switch feature 22
$ git barry switch release v2.1

Configuration

Store your configuration in {PROJECT_ROOT}/gitbarry.ini.

Syntax

Example

[task-feature]
branch-from=master
finish-action=merge
finish-branch-to=master

We create task named feature

  • branch-from - branch from who we checking out when start feature
  • finish-branch-to - merge action-parameter. Target-branch for merge.

Finish actions

Merge

name in configfile: merge

Merge current task-branch to finish-branch-to parameter. Then check out to finish-branch-to.

Pull-request

name in configfile: pull-request

Send http-request, that created pull-request to finish-branch-to

Request-parameters:

Tag

name in configfile: tag

Tag branch

Request-parameters:

  • branch-from - branch from who we checking out when start feature
  • finish-branch-to - merge action-parameter. Target-branch for merge.

Open-browser

name in configfile: open-browser

Open browser when finish

Parameters: