mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
(refs #74)JSON conversion test.
This commit is contained in:
@@ -71,7 +71,7 @@ class GitBucketReceivePackFactory extends ReceivePackFactory[HttpServletRequest]
|
|||||||
import scala.collection.JavaConverters._
|
import scala.collection.JavaConverters._
|
||||||
|
|
||||||
class CommitLogHook(owner: String, repository: String, userName: String) extends PostReceiveHook
|
class CommitLogHook(owner: String, repository: String, userName: String) extends PostReceiveHook
|
||||||
with RepositoryService with AccountService with IssuesService with ActivityService {
|
with RepositoryService with AccountService with IssuesService with ActivityService with WebHookService {
|
||||||
|
|
||||||
private val logger = LoggerFactory.getLogger(classOf[CommitLogHook])
|
private val logger = LoggerFactory.getLogger(classOf[CommitLogHook])
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ class CommitLogHook(owner: String, repository: String, userName: String) extends
|
|||||||
)
|
)
|
||||||
|
|
||||||
// TODO invoke WebHookService
|
// TODO invoke WebHookService
|
||||||
|
sendWebHook(payload)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// update repository last modified time.
|
// update repository last modified time.
|
||||||
|
|||||||
Reference in New Issue
Block a user