Merge pull request #61 from 8398a7/issue/59
[#59] Limit commit sha to 8 characters
This commit is contained in:
Коммит
9e2639ff54
|
@ -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)}>`,
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -175,7 +175,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,
|
||||
};
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче