diff --git a/src/common/mustacheHelper.ts b/src/common/mustacheHelper.ts index c70f6ed..3a4fecc 100644 --- a/src/common/mustacheHelper.ts +++ b/src/common/mustacheHelper.ts @@ -159,6 +159,8 @@ export class MustacheHelper { deploymentHistoryLink: deploymentHistoryLink, deploymentWindowComment: event.payload.timeWindowComment ?? '', deploymentWindowCommentStyle: event.payload.timeWindowComment ? 'block' : 'none', + triggeredWithoutApproval: event.isDeploymentDoneWithoutApproval ? 'Deployment triggered without approval' : '', + triggeredWithoutApprovalStyle: event.isDeploymentDoneWithoutApproval ? 'block' : 'none' } } else if (event.eventTypeId===EVENT_TYPE.Approval){ diff --git a/src/common/types.ts b/src/common/types.ts index 8e091ad..0e0fbb9 100644 --- a/src/common/types.ts +++ b/src/common/types.ts @@ -136,6 +136,8 @@ export interface ParsedCDEvent { dockerImg: string; deploymentWindowComment?: string; deploymentWindowCommentStyle?: string; + triggeredWithoutApproval?: string; + triggeredWithoutApprovalStyle?: string; } export enum EVENT_TYPE { Trigger = 1, diff --git a/src/notification/service/notificationService.ts b/src/notification/service/notificationService.ts index 31de056..25415a4 100644 --- a/src/notification/service/notificationService.ts +++ b/src/notification/service/notificationService.ts @@ -257,5 +257,6 @@ class Event { isProdEnv: boolean baseUrl?: string envIdsForCiPipeline?: number[] + isDeploymentDoneWithoutApproval?: boolean } export {NotificationService, Event} \ No newline at end of file