Skip to content

Commit 4a24bf1

Browse files
committed
make revive luky
1 parent 2ae5955 commit 4a24bf1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

modules/structs/issue_comment.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ type EditIssueCommentOption struct {
3636
Body string `json:"body" binding:"Required"`
3737
}
3838

39+
// CommentReaction represent comment reactions
3940
type CommentReaction struct {
4041
Reaction string `json:"reaction"`
4142
Users []*string `json:"users"`
4243
Count int64 `json:"count"`
4344
}
4445

46+
// CommentReactionList is a list of comment reactions
4547
type CommentReactionList []*CommentReaction

routers/api/v1/repo/issue_comment.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ func GetCommentReactions(ctx *context.APIContext, form api.CommentReactionList)
456456

457457
}
458458

459+
// AddCommentReaction create a reaction to a comment
459460
func AddCommentReaction(ctx *context.APIContext, form api.CommentReaction) {
460461
// swagger:operation PUT /repos/{owner}/{repo}/issues/{index}/comments/{id}/reactions issue issueAddCommentReaction
461462
// ---
@@ -500,6 +501,7 @@ func AddCommentReaction(ctx *context.APIContext, form api.CommentReaction) {
500501
setCommentReaction(ctx, form, true)
501502
}
502503

504+
// DelCommentReaction delete a reaction to a comment
503505
func DelCommentReaction(ctx *context.APIContext, form api.CommentReaction) {
504506
// swagger:operation DELETE /repos/{owner}/{repo}/issues/{index}/comments/{id}/reactions issue issueDelCommentReaction
505507
// ---

0 commit comments

Comments
 (0)