Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexhokl/bb
BitBucket Pull Requests Manager
https://github.com/alexhokl/bb
bitbucket cli command-line golang
Last synced: 24 days ago
JSON representation
BitBucket Pull Requests Manager
- Host: GitHub
- URL: https://github.com/alexhokl/bb
- Owner: alexhokl
- License: mit
- Created: 2017-01-14T05:47:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-25T10:53:38.000Z (over 1 year ago)
- Last Synced: 2024-06-20T22:35:03.927Z (6 months ago)
- Topics: bitbucket, cli, command-line, golang
- Language: Go
- Size: 1.33 MB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BitBucket Pull Request Manager [![Build Status](https://travis-ci.org/alexhokl/bb.svg?branch=master)](https://travis-ci.org/alexhokl/bb)
This is a command line tool to help working with BitBucket pull requests.
Usage:
bb [command]Available Commands:
Command | Description
--- | ---
login | Log onto BitBucket (and retrieve and store access tokens)
approve | Approve the specified pull request
create | Create the specified pull request
checkout | Checkout the latest code of the branch of the specified pull request
decline | Decline the specified pull request
describe | Describe the specified pull request
list | List pull requests
merge | Merge the specified pull request
open | Open the web page of the specified pull request in a browser
unapprove | Un-approve the specified pull request
list-jira-ids | list all JIRA IDs involved in a pull requestUse "bb [command] --help" for more information about a command.
### Installation
If the machine has Go installed, simply run `go get -u
github.com/alexhokl/bb`. If not, download the latest binary from
[release](https://github.com/alexhokl/bb/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 OAuth client ID and secret should be set in
configuration file. The default path is `$HOME/.bb.yml`. The content should be
similar to this.```yaml
client_id: your-client-id
client_secret: your-client-secret
```See section `Create a consumer` in [Use OAuth on Bitbucket
Cloud](https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/)
for the steps to create `client_id` and `client_secret`.### 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 bb.win64.exe
```