File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,12 @@ type EditIssueCommentOption struct {
36
36
Body string `json:"body" binding:"Required"`
37
37
}
38
38
39
+ // CommentReaction represent comment reactions
39
40
type CommentReaction struct {
40
41
Reaction string `json:"reaction"`
41
42
Users []* string `json:"users"`
42
43
Count int64 `json:"count"`
43
44
}
44
45
46
+ // CommentReactionList is a list of comment reactions
45
47
type CommentReactionList []* CommentReaction
Original file line number Diff line number Diff line change @@ -456,6 +456,7 @@ func GetCommentReactions(ctx *context.APIContext, form api.CommentReactionList)
456
456
457
457
}
458
458
459
+ // AddCommentReaction create a reaction to a comment
459
460
func AddCommentReaction (ctx * context.APIContext , form api.CommentReaction ) {
460
461
// swagger:operation PUT /repos/{owner}/{repo}/issues/{index}/comments/{id}/reactions issue issueAddCommentReaction
461
462
// ---
@@ -500,6 +501,7 @@ func AddCommentReaction(ctx *context.APIContext, form api.CommentReaction) {
500
501
setCommentReaction (ctx , form , true )
501
502
}
502
503
504
+ // DelCommentReaction delete a reaction to a comment
503
505
func DelCommentReaction (ctx * context.APIContext , form api.CommentReaction ) {
504
506
// swagger:operation DELETE /repos/{owner}/{repo}/issues/{index}/comments/{id}/reactions issue issueDelCommentReaction
505
507
// ---
You can’t perform that action at this time.
0 commit comments