zed icon indicating copy to clipboard operation
zed copied to clipboard

Permalinks support enterprise github repository

Open tkolleh opened this issue 1 year ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the feature

Support for generating permalinks for enterprise Github repositories. To reproduce:

  • Open project linked to an enterprise Github repo
  • Type :copy permalink
  • See the error "failed to parse Git remote URL"

If applicable, add mockups / screenshots to help present your vision of the feature

No response

tkolleh avatar Apr 29 '24 13:04 tkolleh

One complication here is that for self-hosted instances of GitHub/GitLab/etc. we can't tell which one is being used based on the URL alone, as the URL could be something like git.bigco.com.

maxdeviant avatar May 01 '24 14:05 maxdeviant

I can copy a permalink to a line in a private Enterprise repository hosted on GitHub.

Moshyfawn avatar May 08 '24 18:05 Moshyfawn

Using Zed v0.136.2, attempting:

Screenshot 2024-05-23 at 9 47 12 AM

Results in:

Screenshot 2024-05-23 at 9 46 09 AM

Our Git remote doesn't look special, it's in the format:

https://[email protected]/[redacted org name]/[redacted repo name].git

jaydenseric avatar May 22 '24 23:05 jaydenseric

I saw the issue when attempting to link to a self-hosted instances of GitHub/GitLab/etc.

tkolleh avatar Jul 10 '24 02:07 tkolleh