- rename CreateTask to CreateApp methods;

This commit is contained in:
Volkomurov 2023-09-05 16:13:40 +05:00
parent 722d9e359a
commit a9ff088af9
2 changed files with 3 additions and 3 deletions

View File

@ -192,7 +192,7 @@ func (wc *WorkflowController) Workflow(name string) (string, error) {
cloudResult = cloud.PrivateURL cloudResult = cloud.PrivateURL
} }
wc.iCoda.CreateTask(domain.CodaIssue{ wc.iCoda.CreateApp(domain.CodaIssue{
ID: issue.Key, ID: issue.Key,
Summary: strings.TrimSpace(name), Summary: strings.TrimSpace(name),
Git: gitResult, Git: gitResult,

View File

@ -13,7 +13,7 @@ type Coda struct {
type ICoda interface { type ICoda interface {
ListDocs() ListDocs()
CreateTask(task domain.CodaIssue) CreateApp(task domain.CodaIssue)
} }
func NewCodaClient(token string) *Coda { func NewCodaClient(token string) *Coda {
@ -50,7 +50,7 @@ func (c *Coda) ListDocs() {
log.Print(resp) log.Print(resp)
} }
func (c *Coda) CreateTask(task domain.CodaIssue) { func (c *Coda) CreateApp(task domain.CodaIssue) {
resp, _ := c.R(). resp, _ := c.R().
SetBody(task). SetBody(task).
SetContentType("application/json"). SetContentType("application/json").