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!