summaryrefslogtreecommitdiffstats
path: root/modules/templates/helper.go
diff options
context:
space:
mode:
authormrsdizzie <info@mrsdizzie.com>2019-12-22 03:29:26 -0500
committerzeripath <art27@cantab.net>2019-12-22 08:29:26 +0000
commit1df701fd1abbcee93dfcd3cdb114a0f35cb6be45 (patch)
tree70b1f1a47be30eb83ae89a6ba444bcf48357f303 /modules/templates/helper.go
parent875d6b2f8e52a362e47118393bcd47026852db8c (diff)
downloadgitea-1df701fd1abbcee93dfcd3cdb114a0f35cb6be45.tar.gz
gitea-1df701fd1abbcee93dfcd3cdb114a0f35cb6be45.zip
Add ActionCommentPull action (#9456)
* Add ActionCommentPull action Adds ActionCommentPull action to distinguish between a comment on an issue and on a pull request * Update modules/notification/action/action.go Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'modules/templates/helper.go')
-rw-r--r--modules/templates/helper.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 8b5497a1c9..e0cdcbf60a 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -548,7 +548,7 @@ func ActionIcon(opType models.ActionType) string {
return "issue-opened"
case models.ActionCreatePullRequest:
return "git-pull-request"
- case models.ActionCommentIssue:
+ case models.ActionCommentIssue, models.ActionCommentPull:
return "comment-discussion"
case models.ActionMergePullRequest:
return "git-merge"