jira-bot/pkg/utils/jira.go
Andrey Belvedersky 18b2d4e554 template
2021-06-03 01:59:32 +03:00

17 lines
286 B
Go

package utils
import (
"git/ecom/jira-bot/pkg/config"
"github.com/andygrunwald/go-jira"
)
func GetClient(cfg *config.JiraConfig) (*jira.Client, error) {
jiraClient, err := jira.NewClient(cfg.Auth.Client(), cfg.Url)
if err != nil {
return nil, err
}
return jiraClient, nil
}