bitbucket-api-extension

Function

Installation

Add the following line to your Gemfile

gem 'bitbucket-api-extension'

and then execute

bundle install

Usage

# initialize
account = BitbucketApiExtension::Account.new(user_id: 'your account',
                                             user_password: 'your password')
project = BitbucketApiExtension::Project.new(name: 'your project name',
                                             organization_name: 'your name or team name')
api = BitbucketApiExtension::Api.new(project, account)

# fetch pull request list
pp api.pull_requests

# merge command
first_pullrequest = api.pull_requests.first
pp api.merge_commands(first_pullrequest)

# fetch comment
pp api.pull_request_comment(first_pullrequest)

# post comment
api.post_comment(first_pullrequest, "something...")

Contributing to bitbucket-api-extension

Copyright © 2013 S.nishio. See LICENSE.txt for further details.