Home > Net >  How to link to an issue on GitHub, including the issue status
How to link to an issue on GitHub, including the issue status

Time:12-25

I'm looking for the markdown syntax to do this:

enter image description here

I'd like to create a nice link that includes the issue status (here, it's the green symbol). I could not find this documented anywhere and my Google skills are failing me. It seems to be a highly guarded secret for the high priests to use.

CodePudding user response:

The doc says:

If you reference an issue, pull request, or discussion in a list, the reference will unfurl to show the title and state instead. For more information about task lists, see "About task lists."

For example:

- #1

or

- [ ] #2

are both OK.

CodePudding user response:

Nothing in GitHub Flavored Markdown / links would support that out of the box.

You would need an external third-part library like DavidWells/markdown-magic, like in this example, to generate the right reference.

  • Related