|
|
@ -613,6 +613,7 @@ func (m *webhookNotifier) NotifyPushCommits(pusher *user_model.User, repo *repo_ |
|
|
|
After: opts.NewCommitID, |
|
|
|
After: opts.NewCommitID, |
|
|
|
CompareURL: setting.AppURL + commits.CompareURL, |
|
|
|
CompareURL: setting.AppURL + commits.CompareURL, |
|
|
|
Commits: apiCommits, |
|
|
|
Commits: apiCommits, |
|
|
|
|
|
|
|
TotalCommits: commits.Len, |
|
|
|
HeadCommit: apiHeadCommit, |
|
|
|
HeadCommit: apiHeadCommit, |
|
|
|
Repo: convert.ToRepo(repo, perm.AccessModeOwner), |
|
|
|
Repo: convert.ToRepo(repo, perm.AccessModeOwner), |
|
|
|
Pusher: apiPusher, |
|
|
|
Pusher: apiPusher, |
|
|
@ -843,6 +844,7 @@ func (m *webhookNotifier) NotifySyncPushCommits(pusher *user_model.User, repo *r |
|
|
|
After: opts.NewCommitID, |
|
|
|
After: opts.NewCommitID, |
|
|
|
CompareURL: setting.AppURL + commits.CompareURL, |
|
|
|
CompareURL: setting.AppURL + commits.CompareURL, |
|
|
|
Commits: apiCommits, |
|
|
|
Commits: apiCommits, |
|
|
|
|
|
|
|
TotalCommits: commits.Len, |
|
|
|
HeadCommit: apiHeadCommit, |
|
|
|
HeadCommit: apiHeadCommit, |
|
|
|
Repo: convert.ToRepo(repo, perm.AccessModeOwner), |
|
|
|
Repo: convert.ToRepo(repo, perm.AccessModeOwner), |
|
|
|
Pusher: apiPusher, |
|
|
|
Pusher: apiPusher, |
|
|
|