(refs #437)Show author instead of committer

* Explicit classify committer and author
* Use author to render avatar image html
* Support commit view
This commit is contained in:
Tomofumi Tanaka
2014-07-28 23:07:26 +09:00
parent 723de9e81e
commit 2bb1f6168a
13 changed files with 60 additions and 30 deletions

View File

@@ -89,15 +89,15 @@ object WebHookService {
WebHookCommit(
id = commit.id,
message = commit.fullMessage,
timestamp = commit.time.toString,
timestamp = commit.commitTime.toString,
url = commitUrl,
added = diffs._1.collect { case x if(x.changeType == DiffEntry.ChangeType.ADD) => x.newPath },
removed = diffs._1.collect { case x if(x.changeType == DiffEntry.ChangeType.DELETE) => x.oldPath },
modified = diffs._1.collect { case x if(x.changeType != DiffEntry.ChangeType.ADD &&
x.changeType != DiffEntry.ChangeType.DELETE) => x.newPath },
author = WebHookUser(
name = commit.committer,
email = commit.mailAddress
name = commit.committerName,
email = commit.committerEmailAddress
)
)
},