github-changes icon indicating copy to clipboard operation
github-changes copied to clipboard

auto detect owner and repository

Open lalitkapoor opened this issue 11 years ago • 2 comments

If you are in a directory that's part of a git repository then detect owner and repository automatically by looking at the url of the remote origin via: git config --get remote.origin.url

lalitkapoor avatar Feb 22 '14 18:02 lalitkapoor

You may need :)

https://www.npmjs.com/package/git-user-name https://www.npmjs.com/package/git-username https://www.npmjs.com/package/parse-git-config https://www.npmjs.com/package/parse-github-url

tunnckoCore avatar Feb 28 '16 01:02 tunnckoCore

Thanks! @tunnckoCore

lalitkapoor avatar Feb 28 '16 01:02 lalitkapoor