Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Bitbucket Api Laravel Package

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.

View on GitHub
Deep Wiki
Context7

layout: default permalink: /examples/repositories/pull-requests.html title: Pull requests

Pull requests

Manage the comments on pull requests. Other users can reply to them. This allows for the construction of a thread of comments.

Prepare:

{% include auth.md var_name="pull" class_ns="Repositories\PullRequests" %}

Get all pull requests: (API 2.0)

$pull->all($account_name, $repo_slug);

Get all merged pull requests: (API 2.0)

$pull->all($account_name, $repo_slug, array('state' => 'merged'));

Get all merged and declined pull requests: (API 2.0)

$pull->all($account_name, $repo_slug, array('state' => array('merged', 'declined')));

Create a new pull request: (API 2.0)

$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'
        )
    )
));

Update a pull request: (API 2.0)

$pull->update('gentle', 'secret-repo', 1, array(
    'title'         => 'Test PR (updated)',
    'destination'   => array(
        'branch'    => array(
            'name'  => 'master'
        )
    ),
));

Get a specific pull request: (API 2.0)

$pull->get($account_name, $repo_slug, 1);

Get the commits for a pull request: (API 2.0)

$pull->commits($account_name, $repo_slug, 1);

Approve a pull request: (API 2.0)

$pull->approve($account_name, $repo_slug, 1);

Delete a a pull request approval: (API 2.0)

$pull->delete($account_name, $repo_slug, 1);

Get the diff for a pull request: (API 2.0)

$pull->diff($account_name, $repo_slug, 1);

Get the log of a pull request activity: (API 2.0)

If pull request ID is omitted, the entire repository's pull request activity is returned.

$pull->activity($account_name, $repo_slug, 1);

Accept and merge a pull request: (API 2.0)

$pull->accept($account_name, $repo_slug, 1, array(
    'message' => 'This message will be used for merge commit.'
));

Decline a pull request: (API 2.0)

$pull->accept($account_name, $repo_slug, 1, array(
    'message' => 'Please update the docs to reflect new changes.'
));

Related:

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
craftcms/url-validator
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony