goya is a commandline helper connected to jira to easier handle branches / commits
- Go 1.8+
- .goya.yaml in $HOME
$ go get -u github.com/fsuhrau/goya
create a new configuration in $HOME
touch $HOME/.goya.yaml
open $HOME/.goya.yaml
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/
# 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