mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 13:33:32 +02:00
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:
@@ -32,6 +32,10 @@ func New(opts map[string]string) *Cli {
|
|||||||
endpoint, _ := opts["endpoint"]
|
endpoint, _ := opts["endpoint"]
|
||||||
url, _ := url.Parse(strings.TrimRight(endpoint, "/"))
|
url, _ := url.Parse(strings.TrimRight(endpoint, "/"))
|
||||||
|
|
||||||
|
if project, ok := opts["project"]; ok {
|
||||||
|
opts["project"] = strings.ToUpper(project)
|
||||||
|
}
|
||||||
|
|
||||||
cli := &Cli{
|
cli := &Cli{
|
||||||
endpoint: url,
|
endpoint: url,
|
||||||
opts: opts,
|
opts: opts,
|
||||||
|
|||||||
Reference in New Issue
Block a user