Fix notification summary for revision comments

Instead of showing `left a review comment` we should just say `left a
comment` for a revision comment.
This commit is contained in:
Sebastian Martinez
2025-03-27 10:33:06 +01:00
parent 08a2b01f7d
commit 31e273395f
+1 -1
View File
@@ -69,7 +69,7 @@ export function createSummary(
) {
summary = `closed ${kind}`;
} else if (lastAction.type === "revision.comment") {
summary = `left ${count > 1 ? count : "a"} review ${pluralize("comment", count)}`;
summary = `left ${count > 1 ? count : "a"} ${pluralize("comment", count)}`;
} else if (lastAction.type === "review.comment") {
summary = `left ${count > 1 ? count : "a"} review ${pluralize("comment", count)}`;
} else if (a.every(e => e.type === "comment.react")) {