Created
March 29, 2023 15:11
-
-
Save peetzweg/ef1ceea425bab38acf4886d9f049bc18 to your computer and use it in GitHub Desktop.
`zsh` function to open the current directories GitHub issues page. It extracts repository name and owner from `git config --get remote.origin.url`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function issues() { | |
local remote=$(git config --get remote.origin.url) | |
local repo=$(echo $remote | sed 's/.*github.com[:/]\(.*\).git/\1/') | |
local url="https://github.com/${repo}/issues" | |
echo $url | |
open $url | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment