|
|
@ -348,7 +348,7 @@ func TestWebhook(ctx *middleware.Context) { |
|
|
|
{ |
|
|
|
{ |
|
|
|
ID: ctx.Repo.CommitID, |
|
|
|
ID: ctx.Repo.CommitID, |
|
|
|
Message: ctx.Repo.Commit.Message(), |
|
|
|
Message: ctx.Repo.Commit.Message(), |
|
|
|
URL: ctx.Repo.RepoLink + "/commit/" + ctx.Repo.CommitID, |
|
|
|
URL: ctx.Repo.Repository.FullRepoLink() + "/commit/" + ctx.Repo.CommitID, |
|
|
|
Author: &api.PayloadAuthor{ |
|
|
|
Author: &api.PayloadAuthor{ |
|
|
|
Name: ctx.Repo.Commit.Author.Name, |
|
|
|
Name: ctx.Repo.Commit.Author.Name, |
|
|
|
Email: ctx.Repo.Commit.Author.Email, |
|
|
|
Email: ctx.Repo.Commit.Author.Email, |
|
|
@ -356,6 +356,11 @@ func TestWebhook(ctx *middleware.Context) { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
Repo: ctx.Repo.Repository.ComposePayload(), |
|
|
|
Repo: ctx.Repo.Repository.ComposePayload(), |
|
|
|
|
|
|
|
Pusher: &api.PayloadAuthor{ |
|
|
|
|
|
|
|
Name: ctx.User.Name, |
|
|
|
|
|
|
|
Email: ctx.User.Email, |
|
|
|
|
|
|
|
UserName: ctx.User.Name, |
|
|
|
|
|
|
|
}, |
|
|
|
Sender: &api.PayloadUser{ |
|
|
|
Sender: &api.PayloadUser{ |
|
|
|
UserName: ctx.User.Name, |
|
|
|
UserName: ctx.User.Name, |
|
|
|
ID: ctx.User.Id, |
|
|
|
ID: ctx.User.Id, |
|
|
|