Repository navigation
Add allow_force_pushes, allow_deletions and require_linear_history - #473
SanderKnape wants to merge 4 commits into
Conversation
… the github_branch_protection resource
anGie44
left a comment
There was a problem hiding this comment.
thanks for this PR @SanderKnape!
Preemptively approving as changes LGTM, just some suggestions below
Output of acceptance tests:
--- PASS: TestAccGithubBranchProtection_users (15.48s)
--- PASS: TestAccGithubBranchProtection_emptyDismissalRestrictions (19.63s)
--- PASS: TestAccGithubBranchProtection_emptyItems (19.70s)
--- PASS: TestAccGithubBranchProtection_basic (31.70s)
--- PASS: TestAccGithubBranchProtection_teams (45.35s)
|
Thanks for the feedback @anGie44. I made some changes including a set of tests specifically for the optional attributes. Is this what you had in mind? |
anGie44
left a comment
There was a problem hiding this comment.
yep, thanks! just one thing i noted in the basic test otherwise 👍
output of acceptance tests:
--- PASS: TestAccGithubBranchProtection_emptyItems (26.49s)
--- PASS: TestAccGithubBranchProtection_emptyDismissalRestrictions (27.42s)
--- PASS: TestAccGithubBranchProtection_users (28.38s)
--- PASS: TestAccGithubBranchProtection_optionalAttributes (30.24s)
--- PASS: TestAccGithubBranchProtection_basic (36.84s)
--- PASS: TestAccGithubBranchProtection_teams (58.46s)
|
Hey Could this be merged soon please 👍 :) |
|
Looks like recent updates to the branch protection plumbing has added conflicts to this PR. I've got this queued to address this week, but welcome anyone else jumping in to remove conflicts. |
|
On further reading, we are running into an incompatibility between the |
|
+1 for it's a step that is needed for repo creation and not having to do an out of band tweak. When will this be available ? |
|
Curious about the progress on this PR, with the branch protection concerns resolved (now that there are two separate resources for graphql/v3 branch protections), could we maybe merge this in? cc: @jcudit |
|
@k24dizzle added a comment to the underlying issue over in: #305 (comment). I recommend we can proceed with a new PR that adds the features to the GraphQL version of this resource as this one is quite outdated. Possibly something I have time for this week, but would ❤️ a community contribution as well. |
|
Would be really great to be able to use this feature. |
|
I wanted to stop managing repositories config by hand and move to terraform for it but the lack of |
|
Any update on this PR ? |
|
This feature will likely land on the latest Appreciate the patience on this one 🙇🏾 |
|
👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the |
|
I would think this should stay open seeing as how a community member wrote the code and a maintainer agreed that this should be accepted into the project. |
Sorry, just because i got confused by this, I'll mention that this PR is now really old and the 3 fields it adds now exist in the code, obviously via a different PR, so i think it should be unpinned and closed to avoid future confusion. |
Closes #305.
There is an inconsistency in the naming of the
require_linear_historyproperty. The documentation writes it asrequired_linear_history(required). The Go GitHub Client defines it as require. I actually think require makes more sense as its a boolean value and not a list of required values. I'm also fine with changing it though, so let me know.Output of acceptance tests: