diff options
author | mrsdizzie <info@mrsdizzie.com> | 2019-12-22 03:29:26 -0500 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-12-22 08:29:26 +0000 |
commit | 1df701fd1abbcee93dfcd3cdb114a0f35cb6be45 (patch) | |
tree | 70b1f1a47be30eb83ae89a6ba444bcf48357f303 /services/mailer/mail_test.go | |
parent | 875d6b2f8e52a362e47118393bcd47026852db8c (diff) | |
download | gitea-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 'services/mailer/mail_test.go')
-rw-r--r-- | services/mailer/mail_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/mailer/mail_test.go b/services/mailer/mail_test.go index fd87a157b2..43e99c635e 100644 --- a/services/mailer/mail_test.go +++ b/services/mailer/mail_test.go @@ -153,7 +153,7 @@ func TestTemplateSelection(t *testing.T) { pull := models.AssertExistsAndLoadBean(t, &models.Issue{ID: 2, Repo: repo, Poster: doer}).(*models.Issue) comment = models.AssertExistsAndLoadBean(t, &models.Comment{ID: 4, Issue: pull}).(*models.Comment) - msg = testComposeIssueCommentMessage(t, &mailCommentContext{Issue: pull, Doer: doer, ActionType: models.ActionCommentIssue, + msg = testComposeIssueCommentMessage(t, &mailCommentContext{Issue: pull, Doer: doer, ActionType: models.ActionCommentPull, Content: "test body", Comment: comment}, tos, false, "TestTemplateSelection") expect(t, msg, "pull/comment/subject", "pull/comment/body") |