fix(api): link github push commits by their full hash (#3455)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-14 02:28:06 +02:00
1 parent 6e2bf3cbe6
commit 123c4d5bbf
1 file changed
+1 -1
@@ -129,7 +129,7 @@ export async function transformPush(body: GitHubWebhook): Promise<RichEmbedReque
/This reverts commit (\w{40})\./g,
(_, hash) => `This reverts commit [\`${hash.substring(0, 7)}\`](${body.repository?.html_url}/commit/${hash}).`,
);
return `[\`${shortCommitId}\`](${commit.url}) ${commitMessage} - ${commit.author.name}`;
return `[\`${shortCommitId}\`](${body.repository?.html_url}/commit/${commit.id}) ${commitMessage} - ${commit.author.name}`;
})
.join('\n');
if (!body.compare) {