goya

command module
v0.0.0-...-dac0388 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

goya

goya is a commandline helper connected to jira to easier handle branches / commits

Requirements

  • Go 1.8+
  • .goya.yaml in $HOME

Installation

form source
$ go get -u github.com/fsuhrau/goya
configuration

create a new configuration in $HOME

create new config

touch $HOME/.goya.yaml
open $HOME/.goya.yaml

example config

jiraurl: https://my.jira.com
bitbucketurl: https://bitbucket.org/repo/Demo
username: your_username
password: your_password/api_token
clipboard: true # copy commit message to clipboard
ticket: ([a-zA-Z]+-[0-9]+) # regex to identify ticket number of your current branch
types: # mapping of issue type to branch prefix
  Bug: bugfix/
  Epic: feature/
  User Story: feature/
  Technical Enhancement: feature/

Usage

# get informations about ticket and format a branch name to stdout
$ goya branch PROJ-1235

# get informations about ticket and formats a commit message to stdout or clipboard (.goya.yaml)
$ goya commit PROJ-1235

# try to get ticket from current branch, get informations about ticket and formats a commit message to stdout or clipboard (.goya.yaml)
$ goya commit 

# open create pr page for the current branch in you default webbrowser
$ goya pr 

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL