mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
fix(api): link github push commits by their full hash (#3455)
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user