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

RunCreateOptions doesn't allow setting a comment #308

Open
dkirrane opened this issue Feb 14, 2022 · 1 comment
Open

RunCreateOptions doesn't allow setting a comment #308

dkirrane opened this issue Feb 14, 2022 · 1 comment
Labels
confirmed enhancement New feature or request

Comments

@dkirrane
Copy link

For a Speculative Plan I'd like to add a comment.

However, RunCreateOptions doesn't provide an option.

I can set a comment for Apply but not for Runs that are plan only.

@brandonc
Copy link
Collaborator

@dkirrane The Terraform Cloud/Enterprise API supports the UI when adding comments to runs, but our API docs and this SDK don't seem to expose it yet. I've logged this as a feature request. There are a handful of API endpoints that go-tfe doesn't yet support and we are tracking these for future releases. Most likely, comments will need to be created by invoking a separate Comments.Create function instead of setting a Comment field on a plan-only Run.

In the meantime, another option is to populate the Message field of the RunCreateOptions. In the UI, this appears here:

Custom Message

@brandonc brandonc added the enhancement New feature or request label Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants