- rename CreateTask to CreateApp methods;
This commit is contained in:
parent
722d9e359a
commit
a9ff088af9
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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").
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue