gentle/bitbucket-api
PHP Bitbucket API wrapper (PHP 5.4+) using cURL and Buzz. Provides a simple client for interacting with Bitbucket endpoints, with full documentation and optional PHPUnit test suite. MIT licensed.
Manage the comments on pull requests. Other users can reply to them. This allows for the construction of a thread of comments.
{% include auth.md var_name="pull" class_ns="Repositories\PullRequests" %}
$pull->all($account_name, $repo_slug);
$pull->all($account_name, $repo_slug, array('state' => 'merged'));
$pull->all($account_name, $repo_slug, array('state' => array('merged', 'declined')));
$pull->create('gentle', 'secret-repo', array(
'title' => 'Test PR',
'description' => 'Fixed readme',
'source' => array(
'branch' => array(
'name' => 'quickfix-1'
),
'repository' => array(
'full_name' => 'vimishor/secret-repo'
)
),
'destination' => array(
'branch' => array(
'name' => 'master'
)
)
));
$pull->update('gentle', 'secret-repo', 1, array(
'title' => 'Test PR (updated)',
'destination' => array(
'branch' => array(
'name' => 'master'
)
),
));
$pull->get($account_name, $repo_slug, 1);
$pull->commits($account_name, $repo_slug, 1);
$pull->approve($account_name, $repo_slug, 1);
$pull->delete($account_name, $repo_slug, 1);
$pull->diff($account_name, $repo_slug, 1);
If pull request ID is omitted, the entire repository's pull request activity is returned.
$pull->activity($account_name, $repo_slug, 1);
$pull->accept($account_name, $repo_slug, 1, array(
'message' => 'This message will be used for merge commit.'
));
$pull->accept($account_name, $repo_slug, 1, array(
'message' => 'Please update the docs to reflect new changes.'
));
How can I help you explore Laravel packages today?