Skip to content

Instantly share code, notes, and snippets.

View MikeTodd's full-sized avatar

Mike Todd MikeTodd

View GitHub Profile
<?php
// Use in the "Post-Receive URLs" section of your Bitbucket repo.
if ( $_POST['payload'] ) {
$data = json_decode($_POST['payload']);
$commits = $data->{"commits"};