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

feat: add v4 branch protections #128

Merged
merged 4 commits into from
Nov 6, 2022
Merged

Conversation

taharah
Copy link
Contributor

@taharah taharah commented Sep 2, 2022

Adds v4 branch protections as a separate resource. If v4 branch protections are set, then it will disable the v3 branch protection resource to prevent any conflicts.

Resolves #124

Signed-off-by: Trevor Wood Trevor.G.Wood@gmail.com

@anthr76
Copy link

anthr76 commented Sep 29, 2022

This appears to need a rebase.

@kevcube
Copy link
Collaborator

kevcube commented Oct 20, 2022

@taharah do you have time to get this ready for review? This would be helpful for my team. If now I’m happy to take it over.

@kevcube
Copy link
Collaborator

kevcube commented Oct 20, 2022

Also - optional attrs came out of preview so that part can be removed! (Min tf version will need to be bumped up)

@taharah
Copy link
Contributor Author

taharah commented Oct 26, 2022

Also - optional attrs came out of preview so that part can be removed! (Min tf version will need to be bumped up)

I'll get this updated tonight for TF 1.3+. On another note, should this continue to maintain backwards compatibility for v3 protections, or would a breaking change with the appropriate version bump be acceptable?

main.tf Outdated Show resolved Hide resolved
main.tf Outdated Show resolved Hide resolved
Signed-off-by: Trevor Wood <Trevor.G.Wood@gmail.com>
Signed-off-by: Trevor Wood <Trevor.G.Wood@gmail.com>
@taharah taharah requested a review from jvandijk October 31, 2022 21:34
@taharah
Copy link
Contributor Author

taharah commented Oct 31, 2022

@anthr76 or @kevcube this has been updated and is ready for review.

@anthr76
Copy link

anthr76 commented Oct 31, 2022

I am not a maintainer of this repo, though I'm happy to give it a second set of eyes.

@jvandijk
Copy link

I'm not a maintainer either. Only a happy user, and hopefully also able to help to get this into the main branch.

@soerenmartius
Copy link
Member

hey guys, sorry for the delay! We'll review this shortly and come back to you!

main.tf Outdated Show resolved Hide resolved
main.tf Outdated Show resolved Hide resolved
Signed-off-by: Trevor Wood <Trevor.G.Wood@gmail.com>
@taharah
Copy link
Contributor Author

taharah commented Nov 2, 2022

@mariux or @soerenmartius would it be possible to get a review please?

@mariux mariux merged commit 8d7a72f into mineiros-io:main Nov 6, 2022
@taharah taharah deleted the branch-protections branch November 6, 2022 20:29
@mariux
Copy link
Member

mariux commented Nov 7, 2022

sorry for the delay... we added the provided feature but in a slightly different way to support computed values in some scenarios also restoring terraform 1.0 compatibility.

We just released the new version.

Thanks again for providing the feature.

@jvandijk
Copy link

jvandijk commented Nov 8, 2022

Thank you @mariux & @taharah . I've updated my configuration to match your changes and bumped to v0.18.0!

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.

Add Support for Branch Protections (v4)
6 participants