project should always be uppercase

Jira docs say as much:
https://confluence.atlassian.com/display/JIRA/Changing+the+Project+Key+Format#ChangingtheProjectKeyFormat-prerequisites
This commit is contained in:
Jay Buffington
2015-02-18 19:26:36 -08:00
parent 39a194b858
commit 5f7b46173a
+4
View File
@@ -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,