1
0
Fork 0
forked from forgejo/forgejo

Migrate WatchInfo struct to api (#1492)

* Remove WatchInfo and link to api struct

* Add vendor temporary update

* Return to gitea vendor source
This commit is contained in:
Antoine GIRARD 2017-04-16 14:51:04 +02:00 committed by Bo-Yi Wu
parent 237270ef50
commit cf91cfb993
5 changed files with 142 additions and 18 deletions

View file

@ -47,7 +47,7 @@ func (c *Client) CreateIssueComment(owner, repo string, index int64, opt CreateI
return nil, err
}
comment := new(Comment)
return comment, c.getParsedResponse("POST", fmt.Sprintf("/repos/:%s/:%s/issues/%d/comments", owner, repo, index), jsonHeader, bytes.NewReader(body), comment)
return comment, c.getParsedResponse("POST", fmt.Sprintf("/repos/%s/%s/issues/%d/comments", owner, repo, index), jsonHeader, bytes.NewReader(body), comment)
}
// EditIssueCommentOption is option when editing an issue comment.