use new_issue_branch from scripts repo

master
chatton 2 years ago
parent 7772c8150c
commit 29951e6f1f

@ -1,6 +1,9 @@
export PATH="$PATH:/opt/homebrew/bin" export PATH="$PATH:/opt/homebrew/bin"
export PATH="$PATH:/usr/local/bin" export PATH="$PATH:/usr/local/bin"
export PATH="/opt/homebrew/Cellar/python\@3.11/3.11.4/bin/:$PATH"
export PATH="~/go/bin/:$PATH"
alias smb="git stash && git checkout main && git pull" alias smb="git stash && git checkout main && git pull"
alias mb="git checkout main && git pull" alias mb="git checkout main && git pull"
@ -118,19 +121,23 @@ function my_prs(){
gh pr list --author @me gh pr list --author @me
} }
function open_pr(){
gh pr view --web
}
function view_my_prs(){ function view_my_prs(){
pr_numbers="$(gh pr list --author @me --json number | jq '.[]|.number')" /Users/chatton/checkouts/gitea/scripts/zx/view_my_prs.mjs
for pr in $pr_numbers; do
gh pr view $pr --web
done
} }
# new_issue_branch creates an issue branch based off of a github issue # new_issue_branch creates an issue branch based off of a github issue
function new_issue_branch() { function new_issue_branch() {
local issueNumber=$1 /Users/chatton/checkouts/gitea/scripts/zx/new_issue_branch.mjs "$1"
local issueDescription=$(gh issue view ${issueNumber} --repo cosmos/ibc-go --json title | jq -r .title | awk '{print tolower($0)}' | tr " " - | sed s/'[`:()]'//g)
git checkout -b "cian/issue#${issueNumber}-${issueDescription}"
} }
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
# Setting PATH for Python 3.11
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.11/bin:${PATH}"
export PATH

Loading…
Cancel
Save