This commit is contained in:
Lunny Xiao 2018-05-21 16:29:14 +08:00
parent fdb5bd2d20
commit fd03aaa662
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 11 additions and 11 deletions

View File

@ -33,11 +33,11 @@ func (r *indexerReceiver) NotifyNewIssue(issue *models.Issue) {
models.UpdateIssueIndexer(issue.ID)
}
func (w *indexerReceiver) NotifyCloseIssue(issue *models.Issue, doer *models.User) {
func (r *indexerReceiver) NotifyCloseIssue(issue *models.Issue, doer *models.User) {
}
func (w *indexerReceiver) NotifyNewPullRequest(pr *models.PullRequest) {
func (r *indexerReceiver) NotifyNewPullRequest(pr *models.PullRequest) {
models.UpdateIssueIndexer(pr.Issue.ID)
}

View File

@ -45,33 +45,33 @@ func (ns *notificationService) Run() {
}
}
func (w *notificationService) NotifyCreateIssueComment(doer *models.User, repo *models.Repository,
func (ns *notificationService) NotifyCreateIssueComment(doer *models.User, repo *models.Repository,
issue *models.Issue, comment *models.Comment) {
service.issueQueue <- issueNotificationOpts{
ns.issueQueue <- issueNotificationOpts{
issue,
doer.ID,
}
}
func (w *notificationService) NotifyNewIssue(issue *models.Issue) {
service.issueQueue <- issueNotificationOpts{
func (ns *notificationService) NotifyNewIssue(issue *models.Issue) {
ns.issueQueue <- issueNotificationOpts{
issue,
issue.Poster.ID,
}
}
func (w *notificationService) NotifyCloseIssue(issue *models.Issue, doer *models.User) {
service.issueQueue <- issueNotificationOpts{
func (ns *notificationService) NotifyCloseIssue(issue *models.Issue, doer *models.User) {
ns.issueQueue <- issueNotificationOpts{
issue,
doer.ID,
}
}
func (w *notificationService) NotifyMergePullRequest(*models.PullRequest, *models.User, *git.Repository) {
func (ns *notificationService) NotifyMergePullRequest(*models.PullRequest, *models.User, *git.Repository) {
}
func (w *notificationService) NotifyNewPullRequest(pr *models.PullRequest) {
service.issueQueue <- issueNotificationOpts{
func (ns *notificationService) NotifyNewPullRequest(pr *models.PullRequest) {
ns.issueQueue <- issueNotificationOpts{
pr.Issue,
pr.Issue.PosterID,
}