|
|
@ -608,15 +608,16 @@ func (m *webhookNotifier) NotifyPushCommits(pusher *user_model.User, repo *repo_ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if err := webhook_services.PrepareWebhooks(repo, webhook.HookEventPush, &api.PushPayload{ |
|
|
|
if err := webhook_services.PrepareWebhooks(repo, webhook.HookEventPush, &api.PushPayload{ |
|
|
|
Ref: opts.RefFullName, |
|
|
|
Ref: opts.RefFullName, |
|
|
|
Before: opts.OldCommitID, |
|
|
|
Before: opts.OldCommitID, |
|
|
|
After: opts.NewCommitID, |
|
|
|
After: opts.NewCommitID, |
|
|
|
CompareURL: setting.AppURL + commits.CompareURL, |
|
|
|
CompareURL: setting.AppURL + commits.CompareURL, |
|
|
|
Commits: apiCommits, |
|
|
|
Commits: apiCommits, |
|
|
|
HeadCommit: apiHeadCommit, |
|
|
|
TotalCommits: commits.Len, |
|
|
|
Repo: convert.ToRepo(repo, perm.AccessModeOwner), |
|
|
|
HeadCommit: apiHeadCommit, |
|
|
|
Pusher: apiPusher, |
|
|
|
Repo: convert.ToRepo(repo, perm.AccessModeOwner), |
|
|
|
Sender: apiPusher, |
|
|
|
Pusher: apiPusher, |
|
|
|
|
|
|
|
Sender: apiPusher, |
|
|
|
}); err != nil { |
|
|
|
}); err != nil { |
|
|
|
log.Error("PrepareWebhooks: %v", err) |
|
|
|
log.Error("PrepareWebhooks: %v", err) |
|
|
|
} |
|
|
|
} |
|
|
@ -838,15 +839,16 @@ func (m *webhookNotifier) NotifySyncPushCommits(pusher *user_model.User, repo *r |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if err := webhook_services.PrepareWebhooks(repo, webhook.HookEventPush, &api.PushPayload{ |
|
|
|
if err := webhook_services.PrepareWebhooks(repo, webhook.HookEventPush, &api.PushPayload{ |
|
|
|
Ref: opts.RefFullName, |
|
|
|
Ref: opts.RefFullName, |
|
|
|
Before: opts.OldCommitID, |
|
|
|
Before: opts.OldCommitID, |
|
|
|
After: opts.NewCommitID, |
|
|
|
After: opts.NewCommitID, |
|
|
|
CompareURL: setting.AppURL + commits.CompareURL, |
|
|
|
CompareURL: setting.AppURL + commits.CompareURL, |
|
|
|
Commits: apiCommits, |
|
|
|
Commits: apiCommits, |
|
|
|
HeadCommit: apiHeadCommit, |
|
|
|
TotalCommits: commits.Len, |
|
|
|
Repo: convert.ToRepo(repo, perm.AccessModeOwner), |
|
|
|
HeadCommit: apiHeadCommit, |
|
|
|
Pusher: apiPusher, |
|
|
|
Repo: convert.ToRepo(repo, perm.AccessModeOwner), |
|
|
|
Sender: apiPusher, |
|
|
|
Pusher: apiPusher, |
|
|
|
|
|
|
|
Sender: apiPusher, |
|
|
|
}); err != nil { |
|
|
|
}); err != nil { |
|
|
|
log.Error("PrepareWebhooks: %v", err) |
|
|
|
log.Error("PrepareWebhooks: %v", err) |
|
|
|
} |
|
|
|
} |
|
|
|