diff --git a/CHANGELOG.md b/CHANGELOG.md index aa5747068..db2a2088f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ -# (Unreleased) +# Unreleased + +## Enhancements + +* Add `NotificationTriggerAssessmentCheckFailed` notification trigger type by @rexredinger [#549](https://github.com/hashicorp/go-tfe/pull/549) + +# v1.11.0 ## Enhancements diff --git a/notification_configuration.go b/notification_configuration.go index ac3811b64..afdd3cfa6 100644 --- a/notification_configuration.go +++ b/notification_configuration.go @@ -45,14 +45,15 @@ type notificationConfigurations struct { type NotificationTriggerType string const ( - NotificationTriggerCreated NotificationTriggerType = "run:created" - NotificationTriggerPlanning NotificationTriggerType = "run:planning" - NotificationTriggerNeedsAttention NotificationTriggerType = "run:needs_attention" - NotificationTriggerApplying NotificationTriggerType = "run:applying" - NotificationTriggerCompleted NotificationTriggerType = "run:completed" - NotificationTriggerErrored NotificationTriggerType = "run:errored" - NotificationTriggerAssessmentDrifted NotificationTriggerType = "assessment:drifted" - NotificationTriggerAssessmentFailed NotificationTriggerType = "assessment:failed" + NotificationTriggerCreated NotificationTriggerType = "run:created" + NotificationTriggerPlanning NotificationTriggerType = "run:planning" + NotificationTriggerNeedsAttention NotificationTriggerType = "run:needs_attention" + NotificationTriggerApplying NotificationTriggerType = "run:applying" + NotificationTriggerCompleted NotificationTriggerType = "run:completed" + NotificationTriggerErrored NotificationTriggerType = "run:errored" + NotificationTriggerAssessmentDrifted NotificationTriggerType = "assessment:drifted" + NotificationTriggerAssessmentFailed NotificationTriggerType = "assessment:failed" + NotificationTriggerAssessmentCheckFailed NotificationTriggerType = "assessment:check_failure" ) // NotificationDestinationType represents the destination type of the @@ -355,7 +356,8 @@ func validNotificationTriggerType(triggers []NotificationTriggerType) bool { NotificationTriggerErrored, NotificationTriggerPlanning, NotificationTriggerAssessmentDrifted, - NotificationTriggerAssessmentFailed: + NotificationTriggerAssessmentFailed, + NotificationTriggerAssessmentCheckFailed: continue default: return false