- 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
|
||||
}
|
||||
|
||||
wc.iCoda.CreateTask(domain.CodaIssue{
|
||||
wc.iCoda.CreateApp(domain.CodaIssue{
|
||||
ID: issue.Key,
|
||||
Summary: strings.TrimSpace(name),
|
||||
Git: gitResult,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ type Coda struct {
|
|||
|
||||
type ICoda interface {
|
||||
ListDocs()
|
||||
CreateTask(task domain.CodaIssue)
|
||||
CreateApp(task domain.CodaIssue)
|
||||
}
|
||||
|
||||
func NewCodaClient(token string) *Coda {
|
||||
|
|
@ -50,7 +50,7 @@ func (c *Coda) ListDocs() {
|
|||
log.Print(resp)
|
||||
}
|
||||
|
||||
func (c *Coda) CreateTask(task domain.CodaIssue) {
|
||||
func (c *Coda) CreateApp(task domain.CodaIssue) {
|
||||
resp, _ := c.R().
|
||||
SetBody(task).
|
||||
SetContentType("application/json").
|
||||
|
|
|
|||
Loading…
Reference in New Issue