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

@ -16,6 +16,7 @@ export function formatIssueComment(
html_url?: string;
};
const comment = payload.comment as {
id?: number;
body?: string;
html_url?: string;
};
@ -35,6 +36,7 @@ export function formatIssueComment(
}),
url: comment.html_url ?? issue.html_url,
color: GITHUB_COLORS.issue_comment,
updateKey: repo && comment.id != null ? `issue_comment:${repo}:${comment.id}` : undefined,
description: `${t("events.issue_comment.action_comment", { emoji: em("💬"), action: al })}\n\n> ${commentBody}${truncated ? "..." : ""}`,
},
t,