mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
feat(formatters): add updateKey for suite/deployment/comment edit-in-place
This commit is contained in:
parent
3af50496a7
commit
2f8a87048e
4 changed files with 12 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ export function formatCheckSuite(
|
|||
showEmoji: boolean,
|
||||
): NeutralMessage {
|
||||
const suite = payload.check_suite as {
|
||||
id?: number;
|
||||
head_branch?: string;
|
||||
head_sha?: string;
|
||||
conclusion?: string;
|
||||
|
|
@ -78,6 +79,7 @@ export function formatCheckSuite(
|
|||
suite.html_url ??
|
||||
(baseUrl && suite.head_sha ? `${baseUrl}/commit/${suite.head_sha}/checks` : undefined),
|
||||
color: GITHUB_COLORS[colorKey],
|
||||
updateKey: repo && suite.id != null ? `check_suite:${repo}:${suite.id}` : undefined,
|
||||
fields,
|
||||
},
|
||||
t,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue