fix(formatter): link branch and tag titles

This commit is contained in:
RhenCloud committed 2026-10-01 18:40:02 +08:00
1 parent b7fd31a665
commit 3567c6d321
7 files changed
+45 -8

No files matched your search

+2
View File
@@ -23,6 +23,8 @@ Messages whose title has no colon separator (a `:` followed by a space) keep the
Commit hashes, branches, and tags render as inline code wrapped in a hyperlink (e.g. ``[`abc123d`](https://…/commit/abc123def456)``), falling back to plain inline code when the repo base URL is unavailable.
Branch and tag creation or deletion messages link their repository title to the corresponding branch or tag page.
For push events, when a commit author's GitHub username differs from the pusher, the commit line ends with a link to that author (e.g. `- [octocat](https://github.com/octocat)`). When GitHub cannot resolve a bot account and returns `invalid-email-address`, the commit's author name is shown without a link.
## Emoji
+2
View File
@@ -23,6 +23,8 @@
提交哈希、分支与标签渲染为带超链接的行内代码(如 ``[`abc123d`](https://…/commit/abc123def456)``),仓库基地址不可用时回退为纯行内代码。
创建或删除分支、标签的消息会将仓库标题链接到对应的分支或标签页面。
对于 push 事件,若提交作者的 GitHub 用户名与推送者不同,提交行末尾会附上作者链接(如 `- [octocat](https://github.com/octocat)`)。GitHub 无法解析机器人账户并返回 `invalid-email-address` 时,会显示提交中的作者名称而不添加链接。
## 表情