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
@@ -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,