question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Copy gist url does not respect github enterprise domain

See original GitHub issue

Right now its not possible to copy the url of the gist from the context menu if the extension is configured to github enterpise. The URL always build as a public gist URL.

It should be like this: <host>/gist/<username>/<gist-id> (Not sure if this is always the case)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KnisterPetercommented, Jan 3, 2020

In the case of public GitHub, the URL is https://gist.github.com/{userName}/{gistId}. So it appears like in GitHub Enterprise, it’s not just the domain that’s different, but also that the path is pre-pended with /gist?

If you can confirm that for me (try it with and without the /gist/ part), then I can make this change. It sounds like I likely need to replace the Gistpad: Api Url setting with a GistPad: Host setting, and then apply that to both the API URL as well as the gist URL.

The /gist part is indeed required. Without it I’ll get a 404 as result.

BTW, one other question, have you already configured your GHE host with another extension? I just ask since I’d like to automatically pick this up if possible, to prevent users from needing to set their GHE host name twice.

Kind of yes. There are a few extensions which require configuration of GHE. All a bit different. I’ve maintaining vscode-github, the MS extension github.vscode-pull-request-github and yours at least are the ones that I know of.

1reaction
lostintangentcommented, Jan 2, 2020

Other commands that need to be updated:

  1. View Profile on GitHub
  2. Pasting images into the editor
  3. Git SSO
  4. Relative paths in the playground webview
Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue when viewing my own Gists on GitHub Enterprise #96
I'm using oauth token with gist selected i can see starred gists, although when viewing my ... Copy gist url does not respect...
Read more >
Clone instructions do not respect `SSH_DOMAIN` variable ...
I'm running with the docker image and have the following set as environment variables. The idea being to have a separate domain for...
Read more >
Troubleshooting custom domains and GitHub Pages
You can check for common errors to resolve issues with custom domains or HTTPS for your GitHub Pages site.
Read more >
Forking and cloning gists - GitHub Docs
Gists are actually Git repositories, which means that you can fork or clone any gist, even if you aren't the original author. You...
Read more >
Objects - GitHub Enterprise Cloud Docs
Objects in GraphQL represent the resources you can access. An object can contain a list of fields, which are specifically typed. For example,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found