Skip to content

Commit

Permalink
Improve the comment on comment type (go-gitea#14609)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored Feb 10, 2021
1 parent f82b1dd commit c0c59a4
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions models/issue_comment.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,68 +36,68 @@ const (

// Enumerate all the comment types
const (
// Plain comment, can be associated with a commit (CommitID > 0) and a line (LineNum > 0)
// 0 Plain comment, can be associated with a commit (CommitID > 0) and a line (LineNum > 0)
CommentTypeComment CommentType = iota
CommentTypeReopen
CommentTypeClose
CommentTypeReopen // 1
CommentTypeClose // 2

// References.
// 3 References.
CommentTypeIssueRef
// Reference from a commit (not part of a pull request)
// 4 Reference from a commit (not part of a pull request)
CommentTypeCommitRef
// Reference from a comment
// 5 Reference from a comment
CommentTypeCommentRef
// Reference from a pull request
// 6 Reference from a pull request
CommentTypePullRef
// Labels changed
// 7 Labels changed
CommentTypeLabel
// Milestone changed
// 8 Milestone changed
CommentTypeMilestone
// Assignees changed
// 9 Assignees changed
CommentTypeAssignees
// Change Title
// 10 Change Title
CommentTypeChangeTitle
// Delete Branch
// 11 Delete Branch
CommentTypeDeleteBranch
// Start a stopwatch for time tracking
// 12 Start a stopwatch for time tracking
CommentTypeStartTracking
// Stop a stopwatch for time tracking
// 13 Stop a stopwatch for time tracking
CommentTypeStopTracking
// Add time manual for time tracking
// 14 Add time manual for time tracking
CommentTypeAddTimeManual
// Cancel a stopwatch for time tracking
// 15 Cancel a stopwatch for time tracking
CommentTypeCancelTracking
// Added a due date
// 16 Added a due date
CommentTypeAddedDeadline
// Modified the due date
// 17 Modified the due date
CommentTypeModifiedDeadline
// Removed a due date
// 18 Removed a due date
CommentTypeRemovedDeadline
// Dependency added
// 19 Dependency added
CommentTypeAddDependency
//Dependency removed
// 20 Dependency removed
CommentTypeRemoveDependency
// Comment a line of code
// 21 Comment a line of code
CommentTypeCode
// Reviews a pull request by giving general feedback
// 22 Reviews a pull request by giving general feedback
CommentTypeReview
// Lock an issue, giving only collaborators access
// 23 Lock an issue, giving only collaborators access
CommentTypeLock
// Unlocks a previously locked issue
// 24 Unlocks a previously locked issue
CommentTypeUnlock
// Change pull request's target branch
// 25 Change pull request's target branch
CommentTypeChangeTargetBranch
// Delete time manual for time tracking
// 26 Delete time manual for time tracking
CommentTypeDeleteTimeManual
// add or remove Request from one
// 27 add or remove Request from one
CommentTypeReviewRequest
// merge pull request
// 28 merge pull request
CommentTypeMergePull
// push to PR head branch
// 29 push to PR head branch
CommentTypePullPush
// Project changed
// 30 Project changed
CommentTypeProject
// Project board changed
// 31 Project board changed
CommentTypeProjectBoard
)

Expand Down

0 comments on commit c0c59a4

Please sign in to comment.