Skip to content

Commit ba0004f

Browse files
mruschmannunknwon
authored andcommitted
Fix typos in create issue comment and edit issue comment API URLs (#57)
1 parent d8aff57 commit ba0004f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

issue_comment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (c *Client) CreateIssueComment(owner, repo string, index int64, opt CreateI
3838
return nil, err
3939
}
4040
comment := new(Comment)
41-
return comment, c.getParsedResponse("POST", fmt.Sprintf("/repos/:%s/:%s/issues/%d/comments", owner, repo, index), jsonHeader, bytes.NewReader(body), comment)
41+
return comment, c.getParsedResponse("POST", fmt.Sprintf("/repos/%s/%s/issues/%d/comments", owner, repo, index), jsonHeader, bytes.NewReader(body), comment)
4242
}
4343

4444
// EditIssueCommentOption is option when editing an issue comment.
@@ -53,5 +53,5 @@ func (c *Client) EditIssueComment(owner, repo string, index, commentID int64, op
5353
return nil, err
5454
}
5555
comment := new(Comment)
56-
return comment, c.getParsedResponse("PATCH", fmt.Sprintf("/repos/:%s/:%s/issues/%d/comments/%d", owner, repo, index, commentID), jsonHeader, bytes.NewReader(body), comment)
56+
return comment, c.getParsedResponse("PATCH", fmt.Sprintf("/repos/%s/%s/issues/%d/comments/%d", owner, repo, index, commentID), jsonHeader, bytes.NewReader(body), comment)
5757
}

0 commit comments

Comments
 (0)