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

[TF-10829] add new organization setting option #829

Merged
merged 7 commits into from
Jan 18, 2024
Merged

Conversation

mjyocca
Copy link
Contributor

@mjyocca mjyocca commented Dec 11, 2023

Description

Adds new Organization field to expose enablement/disablement of the new VCS status check setting.

External links

Output from tests

Including output from tests may require access to a TFE instance. Ignore this section if you have no environment to test against.

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

...

@mjyocca mjyocca requested a review from lilincmu December 11, 2023 22:38
@mjyocca mjyocca force-pushed the mjyocca/TF-10829 branch 2 times, most recently from d855e08 to 5521b56 Compare January 10, 2024 03:50
@mjyocca mjyocca requested a review from sebasslash January 17, 2024 18:04
brandonc
brandonc previously approved these changes Jan 17, 2024
organization.go Show resolved Hide resolved
@mjyocca mjyocca marked this pull request as ready for review January 17, 2024 19:19
@mjyocca mjyocca requested a review from a team as a code owner January 17, 2024 19:19
organization.go Outdated
@@ -213,6 +215,9 @@ type OrganizationCreateOptions struct {
// Optional: SendPassingStatusesForUntriggeredSpeculativePlans toggles behavior of untriggered speculative plans to send status updates to version control systems like GitHub.
SendPassingStatusesForUntriggeredSpeculativePlans *bool `jsonapi:"attr,send-passing-statuses-for-untriggered-speculative-plans,omitempty"`

// Optional: If enabled, SendPassingStatusesForUntriggeredSpeculativePlans needs to be false.
AggregatedCommitStatusEnabled *bool `jsonapi:"attr,aggregated-commit-status-enabled"`
Copy link
Collaborator

@brandonc brandonc Jan 17, 2024

Choose a reason for hiding this comment

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

Oh, these Update/Create options should continue to be omitempty, because in this case the empty (nil) pointer omits the attribute!

brandonc
brandonc previously approved these changes Jan 17, 2024
lilincmu
lilincmu previously approved these changes Jan 17, 2024
Copy link
Contributor

@lilincmu lilincmu left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@mjyocca mjyocca dismissed stale reviews from lilincmu and brandonc via 8f4fe54 January 18, 2024 19:08
@mjyocca mjyocca requested review from brandonc and lilincmu January 18, 2024 19:08
@mjyocca mjyocca removed the request for review from sebasslash January 18, 2024 19:27
@mjyocca mjyocca merged commit afa887d into main Jan 18, 2024
10 checks passed
@mjyocca mjyocca deleted the mjyocca/TF-10829 branch January 18, 2024 19:33
Copy link

Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes.

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.

3 participants