Skip to content

Instantly share code, notes, and snippets.

@zmwangx
Last active February 28, 2023 18:48
Show Gist options
  • Save zmwangx/ecf6f93f8c16dd4441633908495955c9 to your computer and use it in GitHub Desktop.
Save zmwangx/ecf6f93f8c16dd4441633908495955c9 to your computer and use it in GitHub Desktop.
GitHub feature request: cross-repo embedded code snippets

Hi,

I really like the embedded code snippets feature introduced last month,[1] but I just realized it doesn't work across repositories. Take this comment[2] as an example: currently, a snippet permalink into Linuxbrew/homebrew-core[3] is turned into an embedded snippet, but a snippet permalink into Linuxbrew/brew[4] is not. It would be really nice if cross-repo links are also converted. It would be beneficial to the Homebrew project for instance, where the package manager itself is developed in Homebrew/brew, the package definitions are developed in separate repos (what we call taps) like Homebrew/homebrew-core, and there are quite a bit of cross references between brew and taps. Thank you.

Best, Zhiming

[1] https://github.com/blog/2415-introducing-embedded-code-snippets
[2] https://github.com/Linuxbrew/homebrew-core/issues/4198#issuecomment-331113613
[3] https://github.com/Linuxbrew/homebrew-core/blob/59b343a86689531bc59702e376654821f766b1c8/Formula/glibc.rb#L16-L31
[4] https://github.com/Linuxbrew/brew/blob/a04f14336a38d4ab0bec01686ae7f242d92a2eed/Library/Homebrew/formula_installer.rb#L424-L453

Hi Zhiming,

Thanks for reaching out to GitHub Support!

It's great to hear from you and thanks for your feedback :)

We've had a few other user request this feature, so I'll go ahead and add a +1 for you on our internal Feature Request List.

I can't promise that we will implement this feature now or in the future, but your feedback has definitely been noted and is super appreciated.

Cheers,
John
GitHub Support

@Zedb0T
Copy link

Zedb0T commented Feb 28, 2023

Hi this would be cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment