jonschlinkert / git-username

Extract the username from a git remote origin URL.
https://github.com/jonschlinkert
MIT License
17 stars 3 forks source link

use `parse-github-url` instead #1

Closed tunnckoCore closed 6 years ago

tunnckoCore commented 9 years ago

also switch to ansi-red instead of chalk

PR is, because it not works with other urls different than HTTPS, like git@github.com:tunnckoCore/git-username.git

remote origin

[core]
    repositoryformatversion = 0
    filemode = true
    bare = false
    logallrefupdates = true
[remote "origin"]
    url = git@github.com:tunnckoCore/git-username.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
tunnckoCore commented 9 years ago

And because of that sync-travis and enable-travis does not work for me.

[09:22:18][~/lib]$ enable-travis 
Please provide your github username and password:
(answers are never stored):

? username: git@github.com:tunnckoCore
? password: ************
? owner/repo: git@github.com:tunnckoCore/git-username

notice the hints

jonschlinkert commented 9 years ago

thanks, I'll merge today

And because of that sync-travis and enable-travis does not work for me.

me neither. both are broken for me as well. something changed either in their API or how it's being authenticated or something. I haven't had a chance to look at it.

tunnckoCore commented 9 years ago

something changed either in their API or how it's being authenticated or something.

Hm, yea maybe. This PR not helps currently. huh, so okey, i'll check when i can :)