Skip to content

Commit

Permalink
SCALRCORE-18737 Workspaces > Control dry-run availability
Browse files Browse the repository at this point in the history
  • Loading branch information
ablik committed Jul 28, 2021
1 parent eb54972 commit 0f5f7da
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

- `scalr_workspace`: new attribute `vcs_repo.enable_dry_runs` ([#70](https://github.com/Scalr/terraform-provider-scalr/pull/70))
- `data.scalr_workspace`: new attribute `vcs_repo.enable_dry_runs` ([#70](https://github.com/Scalr/terraform-provider-scalr/pull/70))

## [1.0.0-rc18] - 2021-07-22
### Changed

Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/scalr_workspace.md
Expand Up @@ -51,6 +51,7 @@ The `vcs_repo` block contains:

* `identifier` - * The reference to the VCS repository in the format `:org/:repo`, this refers to the organization and repository in your VCS provider.
* `path` - Path within the repo, if any.
* `dry_runs_enabled` - Boolean indicates the VCS driven dry runs should run when pull request to configuration versions branch created.

The `created_by` block contains:

Expand Down
1 change: 1 addition & 0 deletions docs/resources/scalr_workspace.md
Expand Up @@ -46,6 +46,7 @@ resource "scalr_workspace" "example" {
* `branch` - (Optional) The repository branch where Terraform will be run from. Default `master`.
* `path` - (Optional) The repository sub-directory that Terraform will execute from. If omitted or submitted as an empty string, this defaults to the repository's root.
* `trigger_prefixes` - (Optional) List of paths (relative to `path`), whose changes will trigger a run for the workspace using this binding when the CV is created. If omitted or submitted as an empty list, any change in `path` will trigger a new run.
* `dry_runs_enabled` - (Optional) Set (true/false) to configure the VCS driven dry runs should run when pull request to configuration versions branch created. Default `true`

* `hooks` - (Optional) Settings for the workspace's custom hooks.

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -8,7 +8,7 @@ require (
github.com/hashicorp/terraform v0.12.0
github.com/hashicorp/terraform-svchost v0.0.0-20191011084731-65d371908596
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/scalr/go-scalr v0.0.0-20210727130511-8862e69794f0
github.com/scalr/go-scalr v0.0.0-20210728093330-6f332f0db345
)

go 1.13
2 changes: 2 additions & 0 deletions go.sum
Expand Up @@ -333,6 +333,8 @@ github.com/scalr/go-scalr v0.0.0-20210707121246-c8ac98a29435 h1:uDCiMP8FjeWzLPbR
github.com/scalr/go-scalr v0.0.0-20210707121246-c8ac98a29435/go.mod h1:n2HQ6QxqyTySiSFTOpAL18SjCKtP+xUskMygO0KuuQU=
github.com/scalr/go-scalr v0.0.0-20210727130511-8862e69794f0 h1:8zbDfSmF6RKWOL5S46UEww0S28gcUwkwSfwRtcA8o4s=
github.com/scalr/go-scalr v0.0.0-20210727130511-8862e69794f0/go.mod h1:n2HQ6QxqyTySiSFTOpAL18SjCKtP+xUskMygO0KuuQU=
github.com/scalr/go-scalr v0.0.0-20210728093330-6f332f0db345 h1:gKjDAVc+Bnkj/xeGR0SxfZ3/Ik4d35pqEWX4JvD1Aso=
github.com/scalr/go-scalr v0.0.0-20210728093330-6f332f0db345/go.mod h1:n2HQ6QxqyTySiSFTOpAL18SjCKtP+xUskMygO0KuuQU=
github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
Expand Down

0 comments on commit 0f5f7da

Please sign in to comment.