Skip to content

Commit

Permalink
feat: add the ability to add a manual approval action to a pipeline (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
madeline-k committed Mar 29, 2022
1 parent 58647cc commit fbbcd37
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,13 @@ export class Pipeline extends Construct {
}));
}

public addManualApprovalToStage(stageName: string, props?: cpipeline_actions.ManualApprovalActionProps) {
const stage = this.getOrCreateStage(stageName);
stage.addAction(new cpipeline_actions.ManualApprovalAction(props ?? {
actionName: 'ManualApprovalAction',
}));
}

private addFailureAlarm(title?: string): cloudwatch.Alarm {
return new PipelineWatcher(this, 'PipelineWatcher', {
pipeline: this.pipeline,
Expand Down

0 comments on commit fbbcd37

Please sign in to comment.