diff --git a/CHANGELOG.md b/CHANGELOG.md index 905e8041..24db08ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,12 @@ All notable changes to this project will be documented in this file. ## Unreleased +## [v0.19.1](https://github.com/buildkite/terraform-provider-buildkite/compare/v0.19.0...v0.19.1) + * SUP-202 Add graphql example queries for finding import IDs [[PR #280](https://github.com/buildkite/terraform-provider-buildkite/pull/280)] @james2791 @jradtilbrook * SUP-1072 Create new provider using framework plugin [[PR #286](https://github.com/buildkite/terraform-provider-buildkite/pull/286)] @jradtilbrook * SUP-1066 Migrate agent token to framework [[PR #289](https://github.com/buildkite/terraform-provider-buildkite/pull/289)] @jradtilbrook +* Omit empty buildRetentionEnabled input [[PR #291](https://github.com/buildkite/terraform-provider-buildkite/pull/291)] @jradtilbrook ## [v0.19.0](https://github.com/buildkite/terraform-provider-buildkite/compare/v0.18.0...v0.19.0) diff --git a/README.md b/README.md index c8634f58..800cd144 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ terraform { required_providers { buildkite = { source = "buildkite/buildkite" - version = "0.19.0" + version = "0.19.1" } } } diff --git a/buildkite/generated.go b/buildkite/generated.go index 5e7fcf6f..a9017ae0 100644 --- a/buildkite/generated.go +++ b/buildkite/generated.go @@ -124,7 +124,7 @@ type PipelineUpdateInput struct { // Autogenerated input type of PipelineUpdate MaximumTimeoutInMinutes int `json:"maximumTimeoutInMinutes"` // Autogenerated input type of PipelineUpdate - BuildRetentionEnabled bool `json:"buildRetentionEnabled"` + BuildRetentionEnabled bool `json:"buildRetentionEnabled,omitempty"` // Autogenerated input type of PipelineUpdate BuildRetentionPeriod BuildRetentionPeriods `json:"buildRetentionPeriod,omitempty"` // Autogenerated input type of PipelineUpdate diff --git a/buildkite/graphql/pipeline.graphql b/buildkite/graphql/pipeline.graphql index bd4b5dad..f95a11bc 100644 --- a/buildkite/graphql/pipeline.graphql +++ b/buildkite/graphql/pipeline.graphql @@ -14,6 +14,7 @@ query getPipeline($slug: ID!) { # @genqlient(for: "PipelineUpdateInput.clusterId", pointer: true) # @genqlient(for: "PipelineUpdateInput.visibility", omitempty: true) +# @genqlient(for: "PipelineUpdateInput.buildRetentionEnabled", omitempty: true) # @genqlient(for: "PipelineUpdateInput.buildRetentionPeriod", omitempty: true) # @genqlient(for: "PipelineUpdateInput.buildRetentionNumber", omitempty: true) # @genqlient(for: "PipelineUpdateInput.archived", omitempty: true) diff --git a/docs/index.md b/docs/index.md index 97dd2357..8ccd0966 100644 --- a/docs/index.md +++ b/docs/index.md @@ -16,7 +16,7 @@ terraform { required_providers { buildkite = { source = "buildkite/buildkite" - version = "0.19.0" + version = "0.19.1" } } } diff --git a/schema.graphql b/schema.graphql index 28c76b7c..41d3886a 100644 --- a/schema.graphql +++ b/schema.graphql @@ -546,33 +546,33 @@ union AuditSubjectNode =APIAccessToken | AgentToken | AuthorizationBitbucket | A """All the possible types of subjects in an Audit Event""" enum AuditSubjectType { - TEAM_SUITE - SCM_SERVICE - SCM_PIPELINE_SETTINGS - SCM_REPOSITORY_HOST - SUITE_MONITOR - PIPELINE - PIPELINE_SCHEDULE - TEAM - SUITE - USER_EMAIL - USER_TOTP + SSO_PROVIDER + ORGANIZATION_MEMBER USER - CLUSTER - CLUSTER_PERMISSION - AUTHORIZATION - SUBSCRIPTION AGENT_TOKEN API_ACCESS_TOKEN CLUSTER_QUEUE CLUSTER_TOKEN NOTIFICATION_SERVICE + CLUSTER ORGANIZATION ORGANIZATION_INVITATION - SSO_PROVIDER - ORGANIZATION_MEMBER + PIPELINE_SCHEDULE + AUTHORIZATION TEAM_MEMBER + TEAM + TEAM_SUITE TEAM_PIPELINE + CLUSTER_PERMISSION + SCM_SERVICE + SCM_PIPELINE_SETTINGS + SCM_REPOSITORY_HOST + SUITE_MONITOR + SUITE + USER_EMAIL + SUBSCRIPTION + USER_TOTP + PIPELINE } """Context for an audit event created during a web request"""