Sounds like VIP developers really like webhooks š
Based on a request on the original announcement for Deploy Webhook (Thanks Chris!), we added another one, this time for commits.
Now you can get pings via a simple webhook whenever a commit for your theme or plugin code is pushed to the subversion repo.
Same as before, you can specify your webhook endpoints in file called wpcom-meta.php
in the root of your theme:
<?php
/**
* Commit Webhook: http://example.com/path/to/endpoint.php
*/
Endpoints can be a comma-separated list of URLs.
Commit Webhook: http://example.com/path/to/endpoint.php,http://example.com/path/to/alternate.php
Endpoints will receive something like the following as POST
data:
array (
'repo' => 'vip',
'theme' => 'test-theme',
'revision' => '1234',
'committer' => 'batmoo',
)
Leave a comment here if you have any suggestions for improvements or other webhooks we could add. We’d also love to hear what you end up doing with these!
Thanks! These are definitely useful and awesome additions.
Is there a reason that the revision log isn’t being pushed like it is on the deploy notification?
Was just thinking the same as Jake.
This would be useful as we are looking to put this into a slack.com channel
I’ve got around this by grabbing the log message from svn by revision number, but would still be useful as it would save me having to do this!