GitScf

Git tools to simplify the workflow at SeeClickFix

Installation

$ gem install git_scf

Configure jira credentials. Either set them in your environment:

$ export JIRA_USERNAME="your-jira-username"
$ export JIRA_PASSWORD="your-jira-password"

or in your git config:

$ git config --global gitscf.jirausername "your-jira-username"
$ git config --global gitscf.jirapassword "your-jira-password"

Usage

Usage: git scf (start|show|review|finish) [issue_number]
      -v, --verbose                    Output more information
      -h, --help                       Display this screen

START - Start a feature branch based on the ticket ID.

$ git scf start SCF-100

SHOW - Show jira information about tickets.

$ git scf show          # shows info on the current branch
$ git scf show -v       # include description and comments
$ git scf show SCF-500  # specify a different ticket ID

REVIEW - Create a pull request in github on the current branch.

$ git scf review

FINISH - Close out the current feature branch and code review.

$ git scf finish

Todo

Contributions are appreciated!

  • Tests
  • Better error handling
  • Less backtick system calls