Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamthen0ise/better-branch
Interactive CLI helper for creating git branches with JIRA Links and some text
https://github.com/iamthen0ise/better-branch
cli git go golang jira utils
Last synced: 3 months ago
JSON representation
Interactive CLI helper for creating git branches with JIRA Links and some text
- Host: GitHub
- URL: https://github.com/iamthen0ise/better-branch
- Owner: iamthen0ise
- License: gpl-3.0
- Created: 2021-07-11T17:00:18.000Z (over 3 years ago)
- Default Branch: stable
- Last Pushed: 2022-08-18T19:48:02.000Z (over 2 years ago)
- Last Synced: 2024-08-07T22:35:29.895Z (7 months ago)
- Topics: cli, git, go, golang, jira, utils
- Language: Go
- Homepage:
- Size: 51.8 KB
- Stars: 13
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://codecov.io/gh/iamthen0ise/better-branch)
[](https://github.com/iamthen0ise/better-branch/actions/workflows/test.yml)# bb (better-branch)
Interactive CLI helper for creating git branches with JIRA Links and some text## Still in development?
Yes## How to install?
`bb` do not use any 3rd party packages, so just build a binary:
```shell
go build
```
Then move binary `bb` in some convient place, and add it to your PATH:
```shell
PATH=:$PATH
```## How it works?
[](https://asciinema.org/a/d4NPyH679pdgjJVfLQpV4SOf7)
This tiny utility was made when i completely bored of creating JIRA branches on Web interface and pulling it to local.Just call `bb`, then Enter JIRA link and/or text, then create a new branch from.
There are multiple ways to create branch name with Jira and/or text description.
### Interactive
Just launch without any args. When asked for values, enter them. If name is beautiful for you, create a new branch.### Pass arguments
```shell
-f
Create `feature/*` branch
-h
Create `hotfix/*` branch
-b
Create `bugfix/*` branch
-r
Create `release/*` branch
-c
Checkout to new branch (default true (default true)
-i
JIRA Link or issue
-t
Custom Issue Text
```
Arguments could be passed with keywords or shorthand.```shell
bb -f -i https://some.jira.cloud/issues/ABC-123 -t Add big button# or
bb f https://some.jira.cloud/issues/ABC-123 Add big button# or even
bb https://some.jira.cloud/issues/ABC-123
```New branch is checkouted after creation by default.
## OS support
Builds are made for Windows, OSX and Linux by Goreleaser. But code wasn't tested on Linux and Windows.## TODO:
- [ ] Go back, add more text, and other interactive mode impovements
- [ ] Set autocheckout true/false with interactive mode
- [x] Support prefixes like `feature/`
- [ ] Support other popular issue trackers like YouTrack, Asana, etc
- [ ] Save screen space in interactive mode by putting hints onto background