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

Add AddComment on Run struct #354

Closed

Conversation

alex-ikse
Copy link
Contributor

Description

Add the ability to use the endpoint POST /runs/:run_id/comments to add comments on a run.

Testing plan

runComment := tfe.RunCommentOptions{
    Body: tfe.String("Test from fork of go-tfe"),
}
err = client.Runs.AddComment(ctx, run.ID, runComment)
if err != nil {
    log.Fatal(err)
}

External links

This endpoint is not documented right now.

Output from tests (HashiCorp employees only)

$ TFE_ADDRESS="https://example" TFE_TOKEN="example" TF_ACC="1" go test ./... -v -tags=integration -run TestFunctionsAffectedByChange

...

@alex-ikse
Copy link
Contributor Author

Replaced by #355

@alex-ikse alex-ikse closed this Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant