Преглед на файлове

Add NotifySyncPushCommits to indexer notifier (#11309) (#11338)

Thanks to @simon-on-gh for tracking down the issue.

Fix #11200

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
tags/v1.11.5
zeripath преди 4 години
родител
ревизия
dd6e604f8f
No account linked to committer's email address
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6
    0
      modules/notification/indexer/indexer.go

+ 6
- 0
modules/notification/indexer/indexer.go Целия файл

@@ -124,6 +124,12 @@ func (r *indexerNotifier) NotifyPushCommits(pusher *models.User, repo *models.Re
}
}

func (r *indexerNotifier) NotifySyncPushCommits(pusher *models.User, repo *models.Repository, refName, oldCommitID, newCommitID string, commits *models.PushCommits) {
if setting.Indexer.RepoIndexerEnabled && refName == git.BranchPrefix+repo.DefaultBranch {
code_indexer.UpdateRepoIndexer(repo)
}
}

func (r *indexerNotifier) NotifyIssueChangeContent(doer *models.User, issue *models.Issue, oldContent string) {
issue_indexer.UpdateIssueIndexer(issue)
}

Loading…
Отказ
Запис