"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "vendor/code.gitea.io/sdk/gitea/issue_comment.go" between
gitea-1.13.1.tar.gz and gitea-1.13.2.tar.gz

About: Gitea allows to set up a self-hosted code hosting Git service (a fork of Gogs).

issue_comment.go  (gitea-1.13.1):issue_comment.go  (gitea-1.13.2)
skipping to change at line 71 skipping to change at line 71
link, _ := url.Parse(fmt.Sprintf("/repos/%s/%s/issues/comments", owner, r epo)) link, _ := url.Parse(fmt.Sprintf("/repos/%s/%s/issues/comments", owner, r epo))
link.RawQuery = opt.QueryEncode() link.RawQuery = opt.QueryEncode()
comments := make([]*Comment, 0, opt.PageSize) comments := make([]*Comment, 0, opt.PageSize)
resp, err := c.getParsedResponse("GET", link.String(), nil, nil, &comment s) resp, err := c.getParsedResponse("GET", link.String(), nil, nil, &comment s)
return comments, resp, err return comments, resp, err
} }
// GetIssueComment get a comment for a given repo by id. // GetIssueComment get a comment for a given repo by id.
func (c *Client) GetIssueComment(owner, repo string, id int64) (*Comment, *Respo nse, error) { func (c *Client) GetIssueComment(owner, repo string, id int64) (*Comment, *Respo nse, error) {
comment := new(Comment) comment := new(Comment)
if err := c.CheckServerVersionConstraint(">=1.12.0"); err != nil { if err := c.checkServerVersionGreaterThanOrEqual(version1_12_0); err != n il {
return comment, nil, err return comment, nil, err
} }
resp, err := c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/issues/ comments/%d", owner, repo, id), nil, nil, &comment) resp, err := c.getParsedResponse("GET", fmt.Sprintf("/repos/%s/%s/issues/ comments/%d", owner, repo, id), nil, nil, &comment)
return comment, resp, err return comment, resp, err
} }
// CreateIssueCommentOption options for creating a comment on an issue // CreateIssueCommentOption options for creating a comment on an issue
type CreateIssueCommentOption struct { type CreateIssueCommentOption struct {
Body string `json:"body"` Body string `json:"body"`
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)