stable

Clone or download

Read-only

Introduce WebHook Object

This task is part of story #9083: trigger webhooks on git push In order to ease the next commit (save return code in DB), I would prefer to have an object for WebHook instead of retrieving directly things in DB. Change-Id: I0bcb40c92e6ec251b3934c43f5c51111df47d30c

Modified Files

Name
M plugins/git/db/install.sql +1 −1 Go to diff View file
M plugins/git/hooks/post-receive.php +1 −1 Go to diff View file
A plugins/git/include/Git/Hook/WebHook.php +52 −0 Go to diff View file
M plugins/git/include/Git/Hook/WebHookDao.php +2 −2 Go to diff View file
A plugins/git/include/Git/Hook/WebHookFactory.php +51 −0 Go to diff View file
M plugins/git/include/Git/Hook/WebHookRequestSender.php +17 −22 Go to diff View file
M plugins/git/include/autoload.php +4 −2 Go to diff View file
M plugins/git/tests/Git/Hook/WebHookRequestSenderTest.php +8 −7 Go to diff View file