Skip to content

Commit

Permalink
project should always be uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybuff committed Feb 19, 2015
1 parent 4924dfa commit 1b69d12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jira/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ func New(opts map[string]string) *Cli {
endpoint, _ := opts["endpoint"]
url, _ := url.Parse(strings.TrimRight(endpoint, "/"))

if project, ok := opts["project"]; ok {
opts["project"] = strings.ToUpper(project)
}

cli := &Cli{
endpoint: url,
opts: opts,
Expand Down

0 comments on commit 1b69d12

Please sign in to comment.