diff --git a/gitea/issue_comment.go b/gitea/issue_comment.go index c6978f4..0977f98 100644 --- a/gitea/issue_comment.go +++ b/gitea/issue_comment.go @@ -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.