stable

Clone or download

Read-only

Introduce a common architecture for the webhooks

This is part of story #9962: trigger a webhook when a project is created Change-Id: I8bb70f90750fed3e912185b5e498166e6dd5b70f

Modified Files

Name
M plugins/git/hooks/post-receive.php +1 −2 Go to diff View file
M plugins/git/include/Git/Hook/PostReceive.class.php +1 −1 Go to diff View file
R plugins/git/include/Git/Webhook/WebhookResponseReceiver.php Go to diff View file
A plugins/git/include/Git/Webhook/PushPayload.php +76 −0 Go to diff View file
M plugins/git/include/Git/Webhook/Webhook.php +2 −2 Go to diff View file
M plugins/git/include/Git/Webhook/WebhookRequestSender.php +13 −81 Go to diff View file
M plugins/git/include/autoload.php +4 −3 Go to diff View file
M plugins/git/tests/Git/Webhook/WebhookRequestSenderTest.php +8 −8 Go to diff View file
A src/common/Webhook/Emitter.php +63 −0 Go to diff View file
A src/common/Webhook/Payload.php +29 −0 Go to diff View file
A src/common/Webhook/StatusLogger.php +26 −0 Go to diff View file
A src/common/Webhook/Webhook.php +33 −0 Go to diff View file
M src/common/autoload.php +7 −2 Go to diff View file
M src/common/project/ProjectManager.class.php +14 −5 Go to diff View file
M src/common/project/Webhook/Log/StatusLogger.php +7 −4 Go to diff View file
A src/common/project/Webhook/ProjectCreatedPayload.php +73 −0 Go to diff View file
M src/common/project/Webhook/Retriever.php +1 −1 Go to diff View file
M src/common/project/Webhook/Webhook.php +7 −70 Go to diff View file
M tests/integration/ProjectImportTest.php +3 −0 Go to diff View file
A tests/simpletest/common/Webhook/EmitterTest.php +61 −0 Go to diff View file
M tests/simpletest/common/project/Webhook/WebhookTest.php +3 −20 Go to diff View file