forked from NYANDEV/forgejo
Move pull webhook to notification (#8805)
* Move pull webhook to notification * fix fmt
This commit is contained in:
parent
05e7715c4b
commit
aaeef295bb
7 changed files with 84 additions and 71 deletions
|
@ -73,6 +73,13 @@ func NotifyNewPullRequest(pr *models.PullRequest) {
|
|||
}
|
||||
}
|
||||
|
||||
// NotifyPullRequestSynchronized notifies Synchronized pull request
|
||||
func NotifyPullRequestSynchronized(doer *models.User, pr *models.PullRequest) {
|
||||
for _, notifier := range notifiers {
|
||||
notifier.NotifyPullRequestSynchronized(doer, pr)
|
||||
}
|
||||
}
|
||||
|
||||
// NotifyPullRequestReview notifies new pull request review
|
||||
func NotifyPullRequestReview(pr *models.PullRequest, review *models.Review, comment *models.Comment) {
|
||||
for _, notifier := range notifiers {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue