1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-06-18 23:57:32 +02:00

Uses a jira client config struct

This commit is contained in:
spmassot
2018-10-17 14:49:25 -04:00
parent 02a41efba4
commit 00a32a0fd7
9 changed files with 101 additions and 27 deletions

View File

@ -42,7 +42,10 @@ func main() {
tp = ba.Client()
}
client, err := jira.NewClient(tp, strings.TrimSpace(jiraURL), true)
config = jira.ServiceConfig{
Notify: true,
}
client, err := jira.NewClient(tp, strings.TrimSpace(jiraURL), config)
if err != nil {
fmt.Printf("\nerror: %v\n", err)
return