Adds template execution and correctly calls create ticket method
This commit is contained in:
parent
41baff8743
commit
c9cfb83e32
3 changed files with 46 additions and 9 deletions
22
jira/jira.go
Normal file
22
jira/jira.go
Normal file
|
@ -0,0 +1,22 @@
|
|||
package jira
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type JiraClient struct {
|
||||
Username string
|
||||
Token string
|
||||
}
|
||||
|
||||
func NewClient(username, token string) *JiraClient {
|
||||
return &JiraClient{
|
||||
Username: username,
|
||||
Token: token,
|
||||
}
|
||||
}
|
||||
|
||||
func (c *JiraClient) CreateTicket(summary, description string) (string, error) {
|
||||
fmt.Printf("Summary: %s\nDescription: %s\n", summary, description)
|
||||
return "", nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue