https://github.com/werediver/bbtronic
Parktronic for your pull-requests on Bitbucket
https://github.com/werediver/bbtronic
Last synced: 11 months ago
JSON representation
Parktronic for your pull-requests on Bitbucket
- Host: GitHub
- URL: https://github.com/werediver/bbtronic
- Owner: werediver
- License: mit
- Created: 2020-06-25T19:07:17.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-29T17:29:23.000Z (almost 6 years ago)
- Last Synced: 2024-10-19T08:13:19.302Z (over 1 year ago)
- Language: Python
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bbtronic
Monitors and merges your pull-request on Bitbucket when it's ready.
## Configuration
`bbtronic` looks for a configuration file named `.bbtronic` in the current directory of one of its parent directories.
The configuration file should be of the following form:
```
[server1]
base_uri = https://server1.com
access_token = xxx
[server2]
base_uri = https://server2.com
access_token = yyy
```
## Building
`bbtronic` can be packaged as a single executable file (thanks to [pex](https://github.com/pantsbuild/pex)) by running the build script:
```
$ ./mk.sh
```
The build script generates a single file `bin/bbtronic`, which you can link or copy into `~/bin/` or other appropriate directory _that is included in your `PATH` environment variable_.
## Usage
You can list the open pull-requests by using the `list` command:
```
$ bbtronic list server1/PROJ/repo
```
It shows IDs and titles of the open pull-requests, so that you can proceed with other commands, the key of which is `automerge`:
```
$ bbtronic automerge server1/PROJ/repo/1234
```
It periodically checks whether the pull-request is ready to be merged and merges it as soon as possible.
# Dependencies
`bbtronic` depends on [requests](https://github.com/psf/requests) package to perform HTTP requests.