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 required_approving_review_count #89 (required go-github update) #160

Conversation

quantumew
Copy link

@quantumew quantumew commented Oct 8, 2018

Fixes #89

@ghost ghost added the size/XXL label Oct 8, 2018
@quantumew
Copy link
Author

@radeksimko Hey! no rush or anything but I opened this PR. Don't let the XXL scare you from reviewing it, it is very small except it contains an update to the Github SDK. ACC tests passed locally and we implemented this change in our stack and it works great! Thanks for any input!!

Copy link
Contributor

@majormoses majormoses left a comment

Choose a reason for hiding this comment

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

LGTM

@radeksimko radeksimko added the Type: Feature New feature or request label Oct 24, 2018
Description: "Number of approvals required to merge a pull request",
Default: 1,
// Old version of terraform, could not utilize validation.IntBetween
ValidateFunc: func(i interface{}, k string) (s []string, es []error) {

Choose a reason for hiding this comment

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

You can use:

import "github.com/hashicorp/terraform/helper/validation"
...

ValidateFunc: validation.IntBetween(1, 6),

Choose a reason for hiding this comment

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

Will be needed to add this on vendor.json

		{
			"checksumSHA1": "nEC56vB6M60BJtGPe+N9rziHqLg=",
			"path": "github.com/hashicorp/terraform/helper/validation",
			"revision": "41e50bd32a8825a84535e353c3674af8ce799161",
			"version": "v0.11.7",
			"versionExact": "v0.11.7"
		},

Copy link
Author

@quantumew quantumew Oct 26, 2018

Choose a reason for hiding this comment

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

Ah, you are right, my comment was indeed incorrect. Thanks for the comment!
90d2508
Had to correct my mistakes here: 63dcaf4, 84bae39

@@ -205,7 +220,7 @@ func resourceGithubBranchProtectionRead(d *schema.ResourceData, meta interface{}
}

if err := flattenAndSetRequiredPullRequestReviews(d, githubProtection); err != nil {
return fmt.Errorf("Error setting required_pull_request_reviews: %v", err)
return fmt.Errorf("Error setting required_pull_reuest_reviews: %v", err)

Choose a reason for hiding this comment

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

typo: required_pull_request_reviews

Copy link
Author

Choose a reason for hiding this comment

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

Hmm looks like that was an old diff, I see it fixed here 9680382

@robsonpeixoto
Copy link

Any news @majormoses ?

@majormoses
Copy link
Contributor

Any news @majormoses ?

I am not a maintainer for this project and my golang foo is pretty weak I just reviewed it saying I didnt see anything that looked incredibly stupid.

@quantumew
Copy link
Author

Any news @majormoses ?

I am not a maintainer for this project and my golang foo is pretty weak I just reviewed it saying I didnt see anything that looked incredibly stupid.

I appreciate that, if only I had that sort of scrutiny in my day to day life. JK thanks for the review!

giphy

@vixus0
Copy link

vixus0 commented Dec 6, 2018

Any updates on getting this reviewed?

@quantumew
Copy link
Author

quantumew commented Dec 18, 2018

@bflad I noticed you merged the last PR, this has been open for a while, any hope of getting this reviewed? I have been using it and it is quite nice. No worries if not, mostly just curious if anything is holding it up.

@thatderek
Copy link

Looking forward to seeing this approved.

@onorua
Copy link

onorua commented Jan 2, 2019

Looking forward to seeing this approved also, this is one of the several issues we need to solve before migrating to terraform GitHub management.

@acactown
Copy link

Any updates on getting this reviewed?

1 similar comment
@wenbin1989
Copy link

Any updates on getting this reviewed?

@zhenkaiwang
Copy link

Looking forward to this!

@paultyng
Copy link
Contributor

paultyng commented May 2, 2019

2.0.0 has been released, including support for this attribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XXL Type: Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] support required_approving_review_count