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

This commit is contained in:
RhenCloud 2026-08-15 18:18:52 +08:00
parent 3af50496a7
commit 2f8a87048e
No known key found for this signature in database
GPG key ID: A574A617378C4E0B
4 changed files with 12 additions and 0 deletions

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,