diff options
Diffstat (limited to 'routers/repo/webhook.go')
-rw-r--r-- | routers/repo/webhook.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go index b93d6fc284..458670ad2f 100644 --- a/routers/repo/webhook.go +++ b/routers/repo/webhook.go @@ -348,7 +348,7 @@ func TestWebhook(ctx *middleware.Context) { { ID: ctx.Repo.CommitID, 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{ Name: ctx.Repo.Commit.Author.Name, Email: ctx.Repo.Commit.Author.Email, @@ -356,6 +356,11 @@ func TestWebhook(ctx *middleware.Context) { }, }, Repo: ctx.Repo.Repository.ComposePayload(), + Pusher: &api.PayloadAuthor{ + Name: ctx.User.Name, + Email: ctx.User.Email, + UserName: ctx.User.Name, + }, Sender: &api.PayloadUser{ UserName: ctx.User.Name, ID: ctx.User.Id, |