Skip to content

Commit

Permalink
fix: standardize team mention formatting in alert and incident notifi…
Browse files Browse the repository at this point in the history
…cations
  • Loading branch information
simlarsen committed Mar 4, 2025
1 parent d131bef commit 8e4cda6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Common/Server/Services/AlertOwnerTeamService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class Service extends DatabaseService<Model> {
projectId: projectId,
alertFeedEventType: AlertFeedEventType.OwnerTeamRemoved,
displayColor: Red500,
feedInfoInMarkdown: `Removed **Team ${team.name}** from the alert as the owner.`,
feedInfoInMarkdown: `Removed team **${team.name}** from the alert as the owner.`,
userId: deleteByUserId || undefined,
});
}
Expand Down Expand Up @@ -109,7 +109,7 @@ export class Service extends DatabaseService<Model> {
projectId: projectId,
alertFeedEventType: AlertFeedEventType.OwnerTeamAdded,
displayColor: Gray500,
feedInfoInMarkdown: `Added **Team ${team.name}** to the alert as the owner.`,
feedInfoInMarkdown: `Added team **${team.name}** to the alert as the owner.`,
userId: createdByUserId || undefined,
});
}
Expand Down
4 changes: 2 additions & 2 deletions Common/Server/Services/IncidentOwnerTeamService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class Service extends DatabaseService<Model> {
projectId: projectId,
incidentFeedEventType: IncidentFeedEventType.OwnerTeamRemoved,
displayColor: Red500,
feedInfoInMarkdown: `👨🏻‍👩🏻‍👦🏻 Removed **Team ${team.name}** from the incident as the owner.`,
feedInfoInMarkdown: `👨🏻‍👩🏻‍👦🏻 Removed team **${team.name}** from the incident as the owner.`,
userId: deleteByUserId || undefined,
workspaceNotification: {
sendWorkspaceNotification: true,
Expand Down Expand Up @@ -113,7 +113,7 @@ export class Service extends DatabaseService<Model> {
projectId: projectId,
incidentFeedEventType: IncidentFeedEventType.OwnerTeamAdded,
displayColor: Gray500,
feedInfoInMarkdown: `👨🏻‍👩🏻‍👦🏻 Added **Team ${team.name}** to the incident as the owner.`,
feedInfoInMarkdown: `👨🏻‍👩🏻‍👦🏻 Added team **${team.name}** to the incident as the owner.`,
userId: createdByUserId || undefined,
workspaceNotification: {
sendWorkspaceNotification: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class Service extends DatabaseService<Model> {
scheduledMaintenanceFeedEventType:
ScheduledMaintenanceFeedEventType.OwnerTeamRemoved,
displayColor: Red500,
feedInfoInMarkdown: `Removed **Team ${team.name}** from the scheduled maintenance as the owner.`,
feedInfoInMarkdown: `Removed team **${team.name}** from the scheduled maintenance as the owner.`,
userId: deleteByUserId || undefined,
},
);
Expand Down Expand Up @@ -116,7 +116,7 @@ export class Service extends DatabaseService<Model> {
scheduledMaintenanceFeedEventType:
ScheduledMaintenanceFeedEventType.OwnerTeamAdded,
displayColor: Gray500,
feedInfoInMarkdown: `Added **Team ${team.name}** to the scheduled maintenance as the owner.`,
feedInfoInMarkdown: `Added team **${team.name}** to the scheduled maintenance as the owner.`,
userId: createdByUserId || undefined,
},
);
Expand Down

0 comments on commit 8e4cda6

Please sign in to comment.