Home

Awesome

perceval-bitbucket

Build Status Coverage Status PyPI version

Perceval backend for Bitbucket.

Requirements

Installation

Getting the source code

Clone the repository

$ git clone https://github.com/perceval-backends/grimoirelab-perceval-bitbucket

Prerequisites

Poetry

We use Poetry for managing the project. You can install it following these steps.

Setup

Install the required dependencies (this will also create a virtual environment)

$ poetry install

Activate the virtual environment

$ poetry shell

Usage

Note:

3 tokens are needed to access the bitbucket backend

For getting REFRESH_TOKEN from Bitbucket one needs to follow these steps -

$ curl -X POST -u {CLIENT_ID}:{SECRET_ID} https://bitbucket.org/site/oauth2/token -d grant_type=authorization_code -d code={CODE}

Fetch issues from the bitbucket project libqxt/libqxt with CLIENT_ID, SECRET_ID, REFRESH_TOKEN

$ perceval bitbucket libqxt libqxt --category issue -c CLIENT_ID -s SECRET_ID -r REFRESH_TOKEN

The bitbucket backend can fetch issue and pull_request.

Roadmap

Contributing

This project follows the contributing guidelines of the GrimoireLab.

Acknowledgment

The backend was initially developed by @imnitishng.

Adhering to the guidelines, the work is moved to this external repository. But, this can be merged (chaoss/grimoirelab-perceval/#/653) into the Perceval repository in the future.

License

Licensed under GNU General Public License (GPL), version 3 or later.