aboutsummaryrefslogtreecommitdiffstats
path: root/services/mirror
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-10-31 05:59:02 +0800
committerGitHub <noreply@github.com>2020-10-30 22:59:02 +0100
commit4df2ed29f28194513c59733e369152b8f8bc1d36 (patch)
tree3bb0604e902390f37e2c9a8104f4ccaf495b4291 /services/mirror
parentdd12384f224e98a130511ebc9ffcfb44ead0e736 (diff)
downloadgitea-4df2ed29f28194513c59733e369152b8f8bc1d36.tar.gz
gitea-4df2ed29f28194513c59733e369152b8f8bc1d36.zip
Refactor: Move PushUpdateOptions (#13363)
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Diffstat (limited to 'services/mirror')
-rw-r--r--services/mirror/mirror.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/services/mirror/mirror.go b/services/mirror/mirror.go
index fc494bfce2..cfef55f2a7 100644
--- a/services/mirror/mirror.go
+++ b/services/mirror/mirror.go
@@ -472,7 +472,11 @@ func syncMirror(repoID string) {
theCommits.CompareURL = m.Repo.ComposeCompareURL(oldCommitID, newCommitID)
- notification.NotifySyncPushCommits(m.Repo.MustOwner(), m.Repo, result.refName, oldCommitID, newCommitID, theCommits)
+ notification.NotifySyncPushCommits(m.Repo.MustOwner(), m.Repo, &repo_module.PushUpdateOptions{
+ RefFullName: result.refName,
+ OldCommitID: oldCommitID,
+ NewCommitID: newCommitID,
+ }, theCommits)
}
log.Trace("SyncMirrors [repo: %-v]: done notifying updated branches/tags - now updating last commit time", m.Repo)