aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue_comment.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r--models/issue_comment.go41
1 files changed, 41 insertions, 0 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go
index 360a212a23..9a6f4247b0 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -110,6 +110,47 @@ const (
CommentTypeChangeIssueRef
)
+var commentStrings = []string{
+ "comment",
+ "reopen",
+ "close",
+ "issue_ref",
+ "commit_ref",
+ "comment_ref",
+ "pull_ref",
+ "label",
+ "milestone",
+ "assignees",
+ "change_title",
+ "delete_branch",
+ "start_tracking",
+ "stop_tracking",
+ "add_time_manual",
+ "cancel_tracking",
+ "added_deadline",
+ "modified_deadline",
+ "removed_deadline",
+ "add_dependency",
+ "remove_dependency",
+ "code",
+ "review",
+ "lock",
+ "unlock",
+ "change_target_branch",
+ "delete_time_manual",
+ "review_request",
+ "merge_pull",
+ "pull_push",
+ "project",
+ "project_board",
+ "dismiss_review",
+ "change_issue_ref",
+}
+
+func (t CommentType) String() string {
+ return commentStrings[t]
+}
+
// RoleDescriptor defines comment tag type
type RoleDescriptor int