Skip to content

Commit ef84a03

Browse files
Display commit SHA over just the word "commit"
1 parent 835dc39 commit ef84a03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

commit.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { PushPayload, Repo } from "./types.ts";
33

44
export default function commit(repo: Repo, payload: PushPayload) {
55
// TODO: Find out a new way to get the commit name
6-
return `\n [commit](https://github.com/${repo.name}/commit/${
7-
payload.head
8-
})\n into${name(repo.name)}`;
6+
return `\n [\`${payload.head.slice(0, 7)}\`](https://github.com/${
7+
repo.name
8+
}/commit/${payload.head})\n into${name(repo.name)}`;
99
}

0 commit comments

Comments
 (0)