mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-23 00:21:28 +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
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue