From 80778ed09246d7422ab07cd446dcaf15dbc5ec81 Mon Sep 17 00:00:00 2001 From: Funzi Date: Mon, 13 Mar 2017 02:37:12 +0100 Subject: [PATCH] fixed backend path for CreateIssueComment (#46) --- gitea/issue_comment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.