mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-16 02:15:50 +01:00
Add "X-Github-Event" header, and change interface.
This commit is contained in:
@@ -507,7 +507,7 @@ trait RepositoryViewerControllerBase extends ControllerBase {
|
||||
getWebHookURLs(repository.owner, repository.name) match {
|
||||
case webHookURLs if(webHookURLs.nonEmpty) =>
|
||||
for(ownerAccount <- getAccountByUserName(repository.owner)){
|
||||
callWebHook(repository.owner, repository.name, webHookURLs,
|
||||
callWebHook("push", webHookURLs,
|
||||
WebHookPayload(git, loginAccount, headName, repository, List(commit), ownerAccount))
|
||||
}
|
||||
case _ =>
|
||||
|
||||
Reference in New Issue
Block a user