-
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
Move to V4 API #20
Move to V4 API #20
Conversation
|
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.
Hey @roidelapluie
Thanks for this PR :)
From what I can see this needs to be merged after #19 and #7 (where there was a question about if this is still needed?) - but this otherwise LGTM :)
Thanks!
@tombuildsstuff rebased
|
gitlab/resource_gitlab_project.go
Outdated
return err | ||
} | ||
|
||
// Wait for the datacenter resource to be ready |
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.
Datacenter? Is this bad copy and paste?
@@ -89,7 +84,6 @@ func resourceGitlabProjectHookCreate(d *schema.ResourceData, meta interface{}) e | |||
MergeRequestsEvents: gitlab.Bool(d.Get("merge_requests_events").(bool)), | |||
TagPushEvents: gitlab.Bool(d.Get("tag_push_events").(bool)), | |||
NoteEvents: gitlab.Bool(d.Get("note_events").(bool)), | |||
BuildEvents: gitlab.Bool(d.Get("build_events").(bool)), |
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.
These got renamed to JobEvents which go-gitlab does support; https://github.com/xanzy/go-gitlab/blob/master/projects.go#L590
Closes #3 Signed-off-by: Julien Pivotto <[email protected]>
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.
looking good to me, LGTM
|
Move to V4 API
Fixes #3