Skip to content
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

Merged
merged 20 commits into from
Jan 23, 2022
Merged

Workflow trigger resource #212

merged 20 commits into from
Jan 23, 2022

Conversation

eranelbaz
Copy link
Member

@eranelbaz eranelbaz commented Jan 20, 2022

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

  • add resource and data
  • fix helpers problem
  • added harness
  • added docs

WorkspaceName string `json:"WorkspaceName"`
ProjectId string `json:"ProjectId"`
LatestDeploymentLog DeploymentLog `json:"latestDeploymentLog"`
Id string `json:"id"`
Copy link
Member Author

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

Comment on lines +50 to +58
if arrayOk {
arrayValueString := ""
for _, arrayValue := range arrayValues {
arrayValueString += "\"" + arrayValue + "\","
}
arrayValueString = arrayValueString[:len(arrayValueString)-1]

hclFields += fmt.Sprintf("\n\t%s = [%s]", key, arrayValueString)
}
Copy link
Member Author

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

Copy link
Contributor

@roni-frantchi roni-frantchi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done! 💯

@eranelbaz eranelbaz marked this pull request as ready for review January 23, 2022 12:36
@eranelbaz eranelbaz merged commit 4f75ddf into main Jan 23, 2022
@eranelbaz eranelbaz deleted the feat-workflow-triggers branch January 23, 2022 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workflow triggers support
2 participants