diff options
author | lstahlman <lstahlman@users.noreply.github.com> | 2016-08-09 22:01:57 -0700 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-08-09 22:01:57 -0700 |
commit | 89f71b44f7e15c044ace56b4201b3e278947e91d (patch) | |
tree | 3b4d20b6176c755dd384f9b4c0101fc8301d76c1 /routers/repo/webhook.go | |
parent | c5d4a9e046045f949ec9606b49dc37b928e83fb3 (diff) | |
download | gitea-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.go | 4 |
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(), |