-
Notifications
You must be signed in to change notification settings - Fork 24
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
⭐️ Adding the resources for approval settings (Gitlab) #4365
Conversation
This comment has been minimized.
This comment has been minimized.
providers/gitlab/resources/gitlab.go
Outdated
return nil, err | ||
} | ||
|
||
return []interface{}{mqlApprovalSettings}, nil |
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.
it looks like maybe approval settings should be singular? as in approvalSettings() []gitlab.project.approvalSettings
could be approvalSettings() gitlab.project.approvalSettings
, since there's only ever one?
if that's true, I think you can change this return to mqlApprovalSettings.(*mqlGitlabProjectApprovalSettings)
and then set the return of the function to *mqlGitlabProjectApprovalSettings
after changing []gitlab.project.approvalSettings
to gitlab.project.approvalSettings
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.
Thanks, that's true, there is only one approval settings for the whole project. Changed it as requested.
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.
nice, thank you!
Signed-off-by: Hossein Rouhani <[email protected]>
Signed-off-by: Hossein Rouhani <[email protected]>
Signed-off-by: Hossein Rouhani <[email protected]>
d70c17b
to
8b48eec
Compare
Important:
we need to figure out why I need to run several time gitlab.project {*} until it works.
Maybe something with initialization which I tried to use and still did not work