[#59] Limit commit sha to 8 characters
This commit is contained in:
Родитель
032eda2e1a
Коммит
4f28b45ad4
|
@ -38,7 +38,9 @@ const commit = (): Field => {
|
|||
return {
|
||||
short: true,
|
||||
title: 'commit',
|
||||
value: `<https://github.com/8398a7/action-slack/commit/${process.env.GITHUB_SHA}|${process.env.GITHUB_SHA}>`,
|
||||
value: `<https://github.com/8398a7/action-slack/commit/${
|
||||
process.env.GITHUB_SHA
|
||||
}|${process.env.GITHUB_SHA?.slice(0, 8)}>`,
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -174,7 +174,10 @@ export class Client {
|
|||
|
||||
return {
|
||||
title: 'commit',
|
||||
value: `<https://github.com/${owner}/${repo}/commit/${sha}|${sha}>`,
|
||||
value: `<https://github.com/${owner}/${repo}/commit/${sha}|${sha.slice(
|
||||
0,
|
||||
8,
|
||||
)}>`,
|
||||
short: true,
|
||||
};
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче