Closed anguslees closed 1 year ago
Thanks, I think you're right. I'm a little confused because I don't see any reference in github's docs to any username other than git@github.com (such as https://docs.github.com/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection). Do you know why the username would be different? Is this an enterprise feature / are there docs for what the username can be?
🤷 I should know more about our corporate github setup, but I don't. Afaik, I think it's regular github-cloud, but definitely a private org/repo. I can find out more if it's important.
(Loving revup btw)
it would satisfy my curiosity as we also use a private repo and i've never seen this format before, but it defintely doesn't block making this fix as I don't see any downside to your proposed solution.
btw feel free to make pull requests in the future so you get credit for your contribution!
I think this regex: https://github.com/Skydio/revup/blob/4b357f91e3982362266d77cec4051e1cebde32e4/revup/github_utils.py#L25
... should be
rf"^[^@]+@{github_url}:([^/]+)/([^.]+)(?:\.git)?$"
.When I hack that change locally,
revup
works for me.