summaryrefslogtreecommitdiffstats
path: root/models/repo_watch.go
diff options
context:
space:
mode:
authormrsdizzie <info@mrsdizzie.com>2019-12-22 09:29:26 +0100
committerzeripath <art27@cantab.net>2019-12-22 09:29:26 +0100
commit1df701fd1abbcee93dfcd3cdb114a0f35cb6be45 (patch)
tree70b1f1a47be30eb83ae89a6ba444bcf48357f303 /models/repo_watch.go
parentfixed bug in GitTreeBySHA where pulling items from a page other than page 1 w... (diff)
downloadforgejo-1df701fd1abbcee93dfcd3cdb114a0f35cb6be45.tar.xz
forgejo-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 'models/repo_watch.go')
-rw-r--r--models/repo_watch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo_watch.go b/models/repo_watch.go
index 2279dcb115..7d421081a4 100644
--- a/models/repo_watch.go
+++ b/models/repo_watch.go
@@ -210,7 +210,7 @@ func notifyWatchers(e Engine, act *Action) error {
if !act.Repo.checkUnitUser(e, act.UserID, false, UnitTypeIssues) {
continue
}
- case ActionCreatePullRequest, ActionMergePullRequest, ActionClosePullRequest, ActionReopenPullRequest:
+ case ActionCreatePullRequest, ActionCommentPull, ActionMergePullRequest, ActionClosePullRequest, ActionReopenPullRequest:
if !act.Repo.checkUnitUser(e, act.UserID, false, UnitTypePullRequests) {
continue
}