diff --git a/scripts/.local/bin/random/,gh-issue-url b/scripts/.local/bin/random/,gh-issue-url new file mode 100755 index 00000000..ed80c803 --- /dev/null +++ b/scripts/.local/bin/random/,gh-issue-url @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +pr="$(gh issue list --assignee "@me" | tail -n+3 | + fzf --header "Issue" --preview "gh issue view {1}" | awk '{print $1}')" + +git remote get-url origin | + head -c-1 | # remove newline + sed "s|^git@github.com:|https://github.com/|;s|\.git$|/issues/$pr|" | + tee /dev/stderr | pbcopy