A sweet branch creation suite
The overarching goal here is to facilitate developer time and remove duplicative work.
As a developer, I am more productive (and more descriptive) when I only have to write the description for what I'm working one one time (or barring that, as few times as possible).
In order to streamline and facilitate the developer's workflow this tool aims to connect an arbitrary ticketing system (currently only JIRA is supported) to a git forge (currently only GitHub is supported).
Jolly brancher will, given a repository location create branches from JIRA tickets that automatically include ticket information in the branch, and branch name.
Given the repository base directory, you are provided with a list of repositories that you can act on (with tab completion):
After choosing a repository, you can either create a branch based on the contents of a ticket
Alternatively, if the branch name is well formed, you can create a PR against the parent of the branch, the tool will ask some questions and construct the body of the PR (it scans the CODEOWNERS file and suggests those users as tags), and create it:
If you decline to do so, then you will be redirected to the branch creation flow:
It will further create a pull review from an existing branch that is well formed:
It automatically populates the PR description with information from the ticket
JIRA and git credentials are required in ~/.config/jolly_brancher.ini it contains all the global settings.
Example:
[jira] branch_format = {issue_type}/{ticket}-{summary} [git] pat = <REDACTED>
JIRA and git credentials are required in .jolly.ini in the root of the repo and overrides any global settings.
[jira] base_url = https://<subdomain>.atlassian.net token = <basic_auth_token> [git] pat = <personal_access_token> forge_root = https://github.com/<organization_name>/
This project started as a python utility, but over time I have found it to be more helpful as an emacs mode, so it's now a half lisp, half python monstrosity that is tailored exactly to my needs.
- Manually bump version in setup.py
- make deploy