feat(formatters): add updateKey for suite/deployment/comment edit-in-place

This commit is contained in:
RhenCloud committed 2026-08-15 18:18:52 +08:00
1 parent 3af50496a7
commit 2f8a87048e
4 files changed
+12

No files matched your search

+2
View File
@@ -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,