diff options
author | Unknwon <u@gogs.io> | 2015-12-06 23:07:02 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-06 23:07:02 -0500 |
commit | dce2a9e7e1146293f711c0dbd9725ac7eb0b8a16 (patch) | |
tree | 899d61edc698d04ed9aaa036dbfb1ae6402ceba6 /routers/repo/webhook.go | |
parent | abb02889f21b021b826e62999947c895e4d9c3a4 (diff) | |
download | gitea-dce2a9e7e1146293f711c0dbd9725ac7eb0b8a16.tar.gz gitea-dce2a9e7e1146293f711c0dbd9725ac7eb0b8a16.zip |
fix wrong slack webhook payload URL
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, |