自动链接的引用和 URL
对 URL、议题、拉取请求和提交的引用会自动缩短并转换为链接。
本文内容
URL
GitHub 自动从标准 URL 创建链接。
访问 https://github.com
有关创建链接的更多信息,请参阅“基本撰写和格式语法”。
议题和拉取请求
在 GitHub 上的对话中,对议题和拉取请求的引用将自动转换为缩短的链接。 更多信息请参阅“关于 GitHub 上的对话”。
注:在仓库的 wiki 或文件中无法创建自动链接的引用。
引用类型 | 源引用 | 短链接 |
---|---|---|
议题或拉取请求 URL | https://github.com/jlord/sheetsee.js/issues/26 | #26 |
# 和议题或拉取请求编号 |
#26 | #26 |
GH- 和议题或拉取请求编号 |
GH-26 | GH-26 |
Username/Repository# 和议题或拉取请求编号 |
jlord/sheetsee.js#26 | jlord/sheetsee.js#26 |
Organization_name/Repository# 和议题或拉取请求编号 |
github/linguist#4039 | github/linguist#4039 |
提交 SHA
对提交 SHA 哈希的引用会自动转换为指向 GitHub 上提交的短链接。
引用类型 | 源引用 | 短链接 |
---|---|---|
提交 URL | https://github.com/jlord/sheetsee.js/commit/a5c3785ed8d6a35868bc169f07e40e889087fd2e | a5c3785 |
SHA | a5c3785ed8d6a35868bc169f07e40e889087fd2e | a5c3785 |
User@SHA | jlord@a5c3785ed8d6a35868bc169f07e40e889087fd2e | jlord@a5c3785 |
Username/Repository@SHA | User/Repository@SHA: jlord/sheetsee.js@a5c3785ed8d6a35868bc169f07e40e889087fd2e | jlord/sheetsee.js@a5c3785 |
Custom autolinks to external resources
If custom autolink references are configured for a repository, then references to external resources, like a JIRA issue or Zendesk ticket, convert into shortened links. To know which autolinks are available in your repository, contact someone with admin permissions to the repository. For more information, see "Configuring autolinks to reference external resources."