Add committer information to API and Webhooks. Also fixes #3271 (#3414)

This commit is contained in:
lstahlman 2016-08-09 22:01:57 -07:00 committed by 无闻
parent c5d4a9e046
commit 89f71b44f7
4 changed files with 48 additions and 13 deletions

View file

@ -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}