<commit_before># BitBucket Pull Request Manager [![Build Status](https://travis-ci.org/alexhokl/go-bb-pr.svg?branch=master)](https://travis-ci.org/alexhokl/go-bb-pr)

This is a command line tool to help working with BitBucket pull requests.

Usage:
  go-bb-pr [command]

Available Commands:

Command | Description
--- | ---
approve    | Approve a pull request
checkout   | Checkout the latest code of the branch of a pull request
decline    | Decline a pull request
describe   | Describe a pull request
list       | List pull requests
merge      | Merge a pull request
open       | Open the web page of the specified pull request in a browser
unapprove  | Unapprove a pull request

Use "go-bb-pr [command] --help" for more information about a command.

### Installation

If the machine has Go installed, simply run `go get -u github.com/alexhokl/go-bb-pr`. If not, download the latest binary from [release](https://github.com/alexhokl/go-bb-pr/releases) page, and drop it to a directory where it is in of the directories specified in `PATH` environment variable.

Login to BitBucket is required and it should be set in environment variable `bbuser` and `bbpassword`. Currently, all the API requests are made in encrypted traffic but credentials stored in environment variables are not encrypted. This issue should be fixed when this tool has a production release.<commit_msg>Added build instructions to README<commit_after># BitBucket Pull Request Manager [![Build Status](https://travis-ci.org/alexhokl/go-bb-pr.svg?branch=master)](https://travis-ci.org/alexhokl/go-bb-pr)

This is a command line tool to help working with BitBucket pull requests.

Usage:
  go-bb-pr [command]

Available Commands:

Command | Description
--- | ---
approve    | Approve a pull request
checkout   | Checkout the latest code of the branch of a pull request
decline    | Decline a pull request
describe   | Describe a pull request
list       | List pull requests
merge      | Merge a pull request
open       | Open the web page of the specified pull request in a browser
unapprove  | Unapprove a pull request

Use "go-bb-pr [command] --help" for more information about a command.

### Installation

If the machine has Go installed, simply run `go get -u github.com/alexhokl/go-bb-pr`. If not, download the latest binary from [release](https://github.com/alexhokl/go-bb-pr/releases) page, and drop it to a directory where it is in of the directories specified in `PATH` environment variable.

Login to BitBucket is required and it should be set in environment variable `bbuser` and `bbpassword`. Currently, all the API requests are made in encrypted traffic but credentials stored in environment variables are not encrypted. This issue should be fixed when this tool has a production release.

### Build

To create a local build, simply execute `go install`.

To create a cross-machine build, for instance, building a Windows executable on a Mac,

```console
GOOS=windows GOARCH=amd64 go build -o go-bb-pr.win64.exe
```
{'fraction_non_alphanumeric': 0.0780520346897932, 'fraction_numerical': 0.00133422281521014, 'mean_word_length': 3.9570247933884297, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '585330', 'n_tokens_mistral': 844, 'n_tokens_neox': 819, 'n_words': 390}