stable

Clone or download

Read-only

Webhooks are trigered when a new project is activated

This is part of story #9962: trigger a webhook when a project is created For now to be able to test this contribution you have to insert directly into the project_webhook_url the URL of the webhook(s) you want to trigger. Change-Id: I95d77a7470391ae4e013af78875987a2628fc4fa

Modified Files

Name
M src/common/autoload.php +6 −2 Go to diff View file
M src/common/project/ProjectManager.class.php +18 −1 Go to diff View file
A src/common/project/Webhook/Retriever.php +62 −0 Go to diff View file
A src/common/project/Webhook/Webhook.php +102 −0 Go to diff View file
A src/common/project/Webhook/WebhookDao.php +34 −0 Go to diff View file
A src/common/project/Webhook/WebhookDataAccessException.php +25 −0 Go to diff View file
M src/db/mysql/database_structure.sql +5 −0 Go to diff View file
A src/db/mysql/updates/2017/201703131130_create_table_project_webhook_url.php +49 −0 Go to diff View file
A tests/simpletest/common/project/Webhook/RetrieverTest.php +50 −0 Go to diff View file
A tests/simpletest/common/project/Webhook/WebhookTest.php +38 −0 Go to diff View file