Skip to content

Instantly share code, notes, and snippets.

@peetzweg
Created March 29, 2023 15:11
Show Gist options
  • Save peetzweg/ef1ceea425bab38acf4886d9f049bc18 to your computer and use it in GitHub Desktop.
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`.
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