summaryrefslogtreecommitdiffstats
path: root/routers/repo/webhook.go
diff options
context:
space:
mode:
authorlstahlman <lstahlman@users.noreply.github.com>2016-08-09 22:01:57 -0700
committer无闻 <u@gogs.io>2016-08-09 22:01:57 -0700
commit89f71b44f7e15c044ace56b4201b3e278947e91d (patch)
tree3b4d20b6176c755dd384f9b4c0101fc8301d76c1 /routers/repo/webhook.go
parentc5d4a9e046045f949ec9606b49dc37b928e83fb3 (diff)
downloadgitea-89f71b44f7e15c044ace56b4201b3e278947e91d.tar.gz
gitea-89f71b44f7e15c044ace56b4201b3e278947e91d.zip
Add committer information to API and Webhooks. Also fixes #3271 (#3414)
Diffstat (limited to 'routers/repo/webhook.go')
-rw-r--r--routers/repo/webhook.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/routers/repo/webhook.go b/routers/repo/webhook.go
index 715c6a4c72..8b0153e689 100644
--- a/routers/repo/webhook.go
+++ b/routers/repo/webhook.go
@@ -359,6 +359,10 @@ func TestWebhook(ctx *context.Context) {
Name: ctx.Repo.Commit.Author.Name,
Email: ctx.Repo.Commit.Author.Email,
},
+ Committer: &api.PayloadCommitter{
+ Name: ctx.Repo.Commit.Committer.Name,
+ Email: ctx.Repo.Commit.Committer.Email,
+ },
},
},
Repo: ctx.Repo.Repository.ComposePayload(),