Notifying on open PR, and Close/Reopen/Merge issue or PR

This commit is contained in:
Andrey Nering
2017-01-28 13:59:58 -02:00
parent bb5a6b7a07
commit 27d30f1a61
2 changed files with 8 additions and 0 deletions

View File

@ -875,6 +875,8 @@ func NewComment(ctx *context.Context, form auth.CreateCommentForm) {
log.Error(4, "ChangeStatus: %v", err)
} else {
log.Trace("Issue [%d] status changed to closed: %v", issue.ID, issue.IsClosed)
notification.Service.NotifyIssue(issue, ctx.User.ID)
}
}
}