-
Notifications
You must be signed in to change notification settings - Fork 319
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
support default_branch_protection on group #706
support default_branch_protection on group #706
Conversation
I've updated the PR to use go-gitlab 0.50.4 which does what #713 also tries but including the needed api changes. |
62d2771
to
93e86d7
Compare
Updated PR all tests run successfully. |
I'd love to see this merged now that the upstream dependency is released. Default branch protection is causing some issues for me. I was halfway through my own implementation when I found this PR. looks good @domcyrus! |
@domcyrus would you mind updating the documentation of the underlying resources as well? |
49e81d1
to
6fde931
Compare
@willianpaixao I added the missing documentation and also added unit tests. |
Is there anything else needed? |
@domcyrus thanks! LGTM. |
Hi @domcyrus. The newest go-gitlab is already in master you should take it's go mod files and this branch should be good to go. |
@mkjmdski updated with upstream master. |
@roidelapluie could you please enable pipeline in here? |
Thanks! |
As a note: it could have supported string values like |
thanks for your feedback, but I do not understand it. visibility_level is never translated to an int. |
|
I think I now understand what you mean. In terraform, the best practice is to stick to the remote API as close as possible. If the gitlab API asks for an integer, I think we should not invent our own values. |
It's already done with the access control level values ( |
* support default_branch_protection on group Co-authored-by: Marco Cadetg <[email protected]>
Support using default_branch_protection on group. This is implementing one part of #667
It will need a newer dependency of the "github.com/xanzy/go-gitlab" package. Currently only using github.com/xanzy/[email protected] (master) as the change of the needed default_branch_protection on group is only in master.