Repository navigation
Missing docs for autolinking labels #18704
Description
Activity
- addedcontentThis issue or pull request belongs to the Docs Content teamThis issue or pull request belongs to the Docs Content team
on Jun 18, 2022 Thanks for opening this issue. A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.
- addedtriageDo not begin working on this issue until triaged by the teamDo not begin working on this issue until triaged by the team
on Jun 18, 2022 It's a shame that #18537 was closed because the suggested remedy was incorrect, though the request was exactly the same as the current one here. The problem was that I was trying to be helpful by suggesting how to solve a problem rather than just stating a problem and leaving it. That's really frustrating.
OK, I'm adding a +1 to support documenting how to autolink labels with a badge, as noted in this ticket. It's good that this is actually a Github-supported feature - the ultimate point is that it's not documented.
However, the solution requires verification/correction.
Yes, this link results in a label/badge:
https://github.com/github/docs/labels/content
contentThis issue or pull request belongs to the Docs Content team However, referencing a label in a different repository does not result in the rendering of a badge:
https://github.com/anli5005/STEMFaces/labels/frustration
https://github.com/anli5005/STEMFaces/labels/frustrationSo new documentation must be clear that we can only reference a label that exists within the current repo ... if that's actually the rule. There might be other details - we dunno - there's no documentation. LOL
Thanks.
Reacted by Victor Lin and xamidi@styfle and @TonyGravagno, thanks for opening an issue and bringing this to our attention. ✨
We are working on an internal PR that will add this information, so I'm going to go ahead and close this issue. You should be able to view the updated docs soon. 👀
Thanks again for your passion in improving the docs! 💛
Reacted by Steven and Tony GravagnoSuggestion : As a matter of protocol, please don't close tickets when someone is working on a PR ... Tickets should be Assigned, not Closed. PRs should then be applied to open tickets, verified, then closed. That is, why would anyone work on a task that's already closed? :)
And why should a comment like this be necessary in Github, of all places?
Thanks
Reacted by Yukai Chou, leah, Steven, Philip Taron, xamidi and Victor LinSorry to "pile on", but just want to share my experience :) I'm currently searching to try and find these docs to share with others. This issue came up first in my search and I thought: "success! I've found an issue with the same need as me, and it's closed as completed! The answer will surely be here." But there's no link to the new docs and I'm going back to searching :(
Without any official documentation, it looks like this issue serves as the best place to document features and limitations. Here's another:
Spaces must be replaced with
%20. Example: code securityContent related to code security Reacted by xamidi and Moulick AggarwalReacted by StevenBut there's no link to the new docs and I'm going back to searching :(
However, referencing a label in a different repository does not result in the rendering of a badge
Workaround: #18537 (comment)
Reacted by Matt FisherReacted by Matt FisherReacted by Matt FisherSince this ticket is closed I believe the workaround for periods and spaces needs to be opened in a new ticket.
Code of Conduct
What article on docs.github.com is affected?
https://github.com/proxy/docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/autolinked-references-and-urls
What part(s) of the article would you like to see updated?
Adding a link to a label will automatically render a short link with the correct label color.
For example, this link
Renders like this:
contentThis issue or pull request belongs to the Docs Content team
So there probably needs to be a new section about autolinking labels on that page.
Additional information
No response