ln -sf ~/github/dotfiles/.tmux.conf ~/.tmux.conf
ln -sf ~/github/dotfiles/.zshrc ~/.zshrc
ln -sf ~/github/dotfiles/.zsh_aliases ~/.zsh_aliases
Install by cloning the following repository https://github.com/tmux-plugins/tpm
Most dependencies are installed using brew. Check the github README.md installation instructions for each of the links below.
jq command-line JSON processor
brew tap ankitpokhrel/jira-cli
brew install jira-cli
Make sure to create a personal access token in jira through the /ViewProfile.jspa (Profile picture in the top right, click on Profile) page and set it in your preferred zsh/bash file:
export JIRA_API_TOKEN=yourpersonalaccesstoken
ln -s ~/github/dotfiles/alacritty ~/.config/alacritty
NOTE: All commands assume the git branch will contian the jira ticket number
open_ticket
Opens the associated jira ticket from the current branch for the current repository in the present working directory
new_branch
Uses the jira-cli to grab a list of tickets assigned to @me and displays them for selection. Once selected the user must enter a prefix and a suffix.
The branch will be created as prefix/ticket_number-suffix
pr_ready {target_branch}
Uses the github cli, jira cli to open a pull request and update the associated jira ticket.
- executes
gh pr create --base={target_branch} --head "{current_branch}" --title="{current_branch} --body "$PR_BODY
- The PR template used is found in .github/PULL_REQUEST_TEMPLATE.md of the current repo
- The PR body is generated by taking a diff between the current branch and the remote target branch.
- The ticket number in the body is replaced with the current ticket number
- The jira ticket is updated to the 'Verified' status.
- The jira ticket fix version is updated to the current fix version from the current branch.