summaryrefslogtreecommitdiffstats
path: root/models/update.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 /models/update.go
parentc5d4a9e046045f949ec9606b49dc37b928e83fb3 (diff)
downloadgitea-89f71b44f7e15c044ace56b4201b3e278947e91d.tar.gz
gitea-89f71b44f7e15c044ace56b4201b3e278947e91d.zip
Add committer information to API and Webhooks. Also fixes #3271 (#3414)
Diffstat (limited to 'models/update.go')
-rw-r--r--models/update.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/models/update.go b/models/update.go
index 9b2078c986..be50a15e5a 100644
--- a/models/update.go
+++ b/models/update.go
@@ -57,11 +57,13 @@ func ListToPushCommits(l *list.List) *PushCommits {
}
commits = append(commits,
&PushCommit{
- Sha1: commit.ID.String(),
- Message: commit.Message(),
- AuthorEmail: commit.Author.Email,
- AuthorName: commit.Author.Name,
- Timestamp: commit.Author.When,
+ Sha1: commit.ID.String(),
+ Message: commit.Message(),
+ AuthorEmail: commit.Author.Email,
+ AuthorName: commit.Author.Name,
+ CommitterEmail: commit.Committer.Email,
+ CommitterName: commit.Committer.Name,
+ Timestamp: commit.Author.When,
})
}
return &PushCommits{l.Len(), commits, "", nil}