-
Notifications
You must be signed in to change notification settings - Fork 318
Add new options to project resource #72
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 new options to project resource #72
Conversation
a02a159 to
5e6f093
Compare
|
Is there any release process in place for this project ? |
|
Yes but we need to wait for hashicorp end of christmas freeze |
|
@bilby91 I go this error when trying to set |
|
@mcanevet Can you provide more information around your tf files please ? Just by looking at the error I don't see a straight relation with |
|
@bilby91 here is my terraform manifest: resource "gitlab_project" "myproject" {
name = "myproject"
default_branch = "master"
}And if I just change it to that, I have the error message: resource "gitlab_project" "myproject" {
name = "myproject"
default_branch = "master"
merge_method = "ff"
} |
gitlab/resource_gitlab_project.go
Outdated
| } | ||
|
|
||
| if d.HasChange("merge_method") { | ||
| options.Visibility = stringToVisibilityLevel(d.Get("merge_method").(string)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| options.Visibility = stringToVisibilityLevel(d.Get("merge_method").(string)) | |
| options.MergeMethod = stringToMergeMethod(d.Get("merge_method").(string)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@roidelapluie this should resolve @mcanevet issue.
|
Any comment on @mcanevet issue? |
5e6f093 to
4809cf8
Compare
4809cf8 to
61ea7bf
Compare
|
@roidelapluie could you please merge this? |
|
@mcanevet I just realized I didn't update the docs folders. Want me to get that done before merging ? |
|
@bilby91 I guess @roidelapluie will ask for it. So if you have some spare time to do it, then please do it. |
|
Yes please |
61ea7bf to
957063f
Compare
957063f to
3e7bf8e
Compare
|
Ping @roidelapluie |
| Visibility: gitlab.PublicVisibility, | ||
| MergeMethod: gitlab.FastForwardMerge, | ||
| OnlyAllowMergeIfPipelineSucceeds: true, | ||
| OnlyAllowMergeIfAllDiscussionsAreResolved: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you run go fmt?
| return nil | ||
| } | ||
| return &value | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing whiteline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think my VSCode tries to do something different than make fmt. I pushed code again and CI is passing. I'm missing something ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well you should run go fmt + add a blank line here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should be good now :)
New options: - merge_method - only_allow_merge_if_pipeline_succeeds - only_allow_merge_if_all_discussions_are_resolved
3e7bf8e to
ef7c88a
Compare
|
Thanks!! |
New options: