1
0
mirror of https://github.com/interviewstreet/go-jira.git synced 2025-06-16 23:47:50 +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

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