Fix pattern match for webhook.

This commit is contained in:
takezoe
2014-01-04 17:23:18 +09:00
parent 10f54f5790
commit 6f6a61f31a
3 changed files with 3 additions and 0 deletions

View File

@@ -171,6 +171,7 @@ trait PullRequestsControllerBase extends ControllerBase {
callWebHook(owner, name, webHookURLs, callWebHook(owner, name, webHookURLs,
WebHookPayload(git, loginAccount, mergeBaseRefName, repository, commits.flatten.toList, ownerAccount)) WebHookPayload(git, loginAccount, mergeBaseRefName, repository, commits.flatten.toList, ownerAccount))
} }
case _ =>
} }
// notifications // notifications

View File

@@ -144,6 +144,7 @@ trait RepositorySettingsControllerBase extends ControllerBase with FlashMapSuppo
callWebHook(repository.owner, repository.name, webHookURLs, callWebHook(repository.owner, repository.name, webHookURLs,
WebHookPayload(git, ownerAccount, "refs/heads/" + repository.repository.defaultBranch, repository, commits.toList, ownerAccount)) WebHookPayload(git, ownerAccount, "refs/heads/" + repository.repository.defaultBranch, repository, commits.toList, ownerAccount))
} }
case _ =>
} }
flash += "info" -> "Test payload deployed!" flash += "info" -> "Test payload deployed!"

View File

@@ -149,6 +149,7 @@ class CommitLogHook(owner: String, repository: String, pusher: String, baseURL:
callWebHook(owner, repository, webHookURLs, callWebHook(owner, repository, webHookURLs,
WebHookPayload(git, pusherAccount, command.getRefName, repositoryInfo, newCommits, ownerAccount)) WebHookPayload(git, pusherAccount, command.getRefName, repositoryInfo, newCommits, ownerAccount))
} }
case _ =>
} }
} }
} }