Skip to content

Commit

Permalink
feat: clarify status messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Jun 7, 2024
1 parent f182ff8 commit 286ea52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/backend/src/build-notification/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,19 @@ async function getNotificationDescription(input: {
const statsMessage = await getStatsMessage(buildId);
if (!statsMessage) {
if (isReference) {
return "Used as comparison baseline";
return "Used as comparison baseline, no changes found";
}
return "Everything's good!";
}
if (isReference) {
return `${statsMessage} — used as comparison baseline`;
return `Used a comparison baseline, no changes found — ${statsMessage}`;
}
return `${statsMessage} — no change`;
return `${statsMessage} — no changes found`;
}
case "diff-detected": {
const statsMessage = await getStatsMessage(buildId);
if (isReference) {
return `${statsMessage} used as comparison baseline`;
return `${statsMessage}, automatically approved and used as comparison baseline`;
}
return `${statsMessage} — waiting for your decision`;
}
Expand Down

0 comments on commit 286ea52

Please sign in to comment.