-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workflow trigger resource #212
Conversation
…rraform-provider-env0 into feat-workflow-triggers
…rraform-provider-env0 into feat-workflow-triggers
…into feat-workflow-triggers � Conflicts: � client/model.go � client/workflow_triggers.go
WorkspaceName string `json:"WorkspaceName"` | ||
ProjectId string `json:"ProjectId"` | ||
LatestDeploymentLog DeploymentLog `json:"latestDeploymentLog"` | ||
Id string `json:"id"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as we talked on slack we only want to expose the id
if arrayOk { | ||
arrayValueString := "" | ||
for _, arrayValue := range arrayValues { | ||
arrayValueString += "\"" + arrayValue + "\"," | ||
} | ||
arrayValueString = arrayValueString[:len(arrayValueString)-1] | ||
|
||
hclFields += fmt.Sprintf("\n\t%s = [%s]", key, arrayValueString) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there was a problem where we took array and just wrapped that in "[value1,value2]"
but we need ["value1","value2"]
so the HCL will be valid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done! 💯
Issue & Steps to Reproduce / Feature Request
resolved #193
Solution
note there are a lot of files for this PR, but it consists out of harness tests + docs
resource
anddata
harness