sshaw / git-link

Emacs package to get the GitHub/Bitbucket/GitLab/... URL for a buffer location
394 stars 73 forks source link

Support for Opendev #81

Closed freyes closed 3 years ago

freyes commented 3 years ago

OpenDev is a collaboratory for open source software development at scale, it's heavily used by OpenStack, but not exclusively.

sshaw commented 3 years ago

Hi, I tried this out on a random repo and it generated this URL: https://review.opendev.org/starlingx/distcloud/src/branch/master/distributedcloud/babel.cfg#L1 But following that results in a 404. I am logged in but maybe permissions are still required?

If so, do you know a repo I can test with?

freyes commented 3 years ago

Hi, I tried this out on a random repo and it generated this URL: https://review.opendev.org/starlingx/distcloud/src/branch/master/distributedcloud/babel.cfg#L1 But following that results in a 404. I am logged in but maybe permissions are still required?

If so, do you know a repo I can test with?

When doing git clone https://opendev.org/starlingx/distcloud, and the running git-link on distributedcloud/babel.cfg I get the url https://opendev.org/starlingx/distcloud/src/branch/master/distributedcloud/babel.cfg#L1 which loads OK.

review.opendev.org is a gerrit instance, so it's expected to not have urls that allow you to navigate the source code. I changed my patch to use "opendev.org", is there a way to make it work exclusively for https://opendev.org and not for https://review.opendev.org ?

sshaw commented 3 years ago

Hi, thanks, I see.

I went to https://opendev.org/ -> "Get Started" -> Create Ubuntu One then, that just dumps me into Gerrit. How does one create a repo at opendev.org?

is there a way to make it work exclusively for opendev.org and not for review.opendev.org ?

Untested but this should do it:

("\\`opendev.org\\'" git-link-opendev)
sshaw commented 3 years ago

Closing due to lack of activity. Please feel free to reopen with updates.