Skip to content

Commit c0c59a4

Browse files
authored
Improve the comment on comment type (#14609)
1 parent f82b1dd commit c0c59a4

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

models/issue_comment.go

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -36,68 +36,68 @@ const (
3636

3737
// Enumerate all the comment types
3838
const (
39-
// Plain comment, can be associated with a commit (CommitID > 0) and a line (LineNum > 0)
39+
// 0 Plain comment, can be associated with a commit (CommitID > 0) and a line (LineNum > 0)
4040
CommentTypeComment CommentType = iota
41-
CommentTypeReopen
42-
CommentTypeClose
41+
CommentTypeReopen // 1
42+
CommentTypeClose // 2
4343

44-
// References.
44+
// 3 References.
4545
CommentTypeIssueRef
46-
// Reference from a commit (not part of a pull request)
46+
// 4 Reference from a commit (not part of a pull request)
4747
CommentTypeCommitRef
48-
// Reference from a comment
48+
// 5 Reference from a comment
4949
CommentTypeCommentRef
50-
// Reference from a pull request
50+
// 6 Reference from a pull request
5151
CommentTypePullRef
52-
// Labels changed
52+
// 7 Labels changed
5353
CommentTypeLabel
54-
// Milestone changed
54+
// 8 Milestone changed
5555
CommentTypeMilestone
56-
// Assignees changed
56+
// 9 Assignees changed
5757
CommentTypeAssignees
58-
// Change Title
58+
// 10 Change Title
5959
CommentTypeChangeTitle
60-
// Delete Branch
60+
// 11 Delete Branch
6161
CommentTypeDeleteBranch
62-
// Start a stopwatch for time tracking
62+
// 12 Start a stopwatch for time tracking
6363
CommentTypeStartTracking
64-
// Stop a stopwatch for time tracking
64+
// 13 Stop a stopwatch for time tracking
6565
CommentTypeStopTracking
66-
// Add time manual for time tracking
66+
// 14 Add time manual for time tracking
6767
CommentTypeAddTimeManual
68-
// Cancel a stopwatch for time tracking
68+
// 15 Cancel a stopwatch for time tracking
6969
CommentTypeCancelTracking
70-
// Added a due date
70+
// 16 Added a due date
7171
CommentTypeAddedDeadline
72-
// Modified the due date
72+
// 17 Modified the due date
7373
CommentTypeModifiedDeadline
74-
// Removed a due date
74+
// 18 Removed a due date
7575
CommentTypeRemovedDeadline
76-
// Dependency added
76+
// 19 Dependency added
7777
CommentTypeAddDependency
78-
//Dependency removed
78+
// 20 Dependency removed
7979
CommentTypeRemoveDependency
80-
// Comment a line of code
80+
// 21 Comment a line of code
8181
CommentTypeCode
82-
// Reviews a pull request by giving general feedback
82+
// 22 Reviews a pull request by giving general feedback
8383
CommentTypeReview
84-
// Lock an issue, giving only collaborators access
84+
// 23 Lock an issue, giving only collaborators access
8585
CommentTypeLock
86-
// Unlocks a previously locked issue
86+
// 24 Unlocks a previously locked issue
8787
CommentTypeUnlock
88-
// Change pull request's target branch
88+
// 25 Change pull request's target branch
8989
CommentTypeChangeTargetBranch
90-
// Delete time manual for time tracking
90+
// 26 Delete time manual for time tracking
9191
CommentTypeDeleteTimeManual
92-
// add or remove Request from one
92+
// 27 add or remove Request from one
9393
CommentTypeReviewRequest
94-
// merge pull request
94+
// 28 merge pull request
9595
CommentTypeMergePull
96-
// push to PR head branch
96+
// 29 push to PR head branch
9797
CommentTypePullPush
98-
// Project changed
98+
// 30 Project changed
9999
CommentTypeProject
100-
// Project board changed
100+
// 31 Project board changed
101101
CommentTypeProjectBoard
102102
)
103103

0 commit comments

Comments
 (0)