Add "X-Github-Event" header, and change interface.

This commit is contained in:
nazoking
2015-01-06 17:07:32 +09:00
parent db55719a6f
commit ae7ead6272
5 changed files with 7 additions and 5 deletions

View File

@@ -185,7 +185,7 @@ class CommitLogHook(owner: String, repository: String, pusher: String, baseUrl:
for(pusherAccount <- getAccountByUserName(pusher);
ownerAccount <- getAccountByUserName(owner);
repositoryInfo <- getRepository(owner, repository, baseUrl)){
callWebHook(owner, repository, webHookURLs,
callWebHook("push", webHookURLs,
WebHookPayload(git, pusherAccount, command.getRefName, repositoryInfo, newCommits, ownerAccount))
}
case _ =>