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

⭐️ Adding the resources for approval settings (Gitlab) #4365

Merged
merged 3 commits into from
Jul 19, 2024

Conversation

HRouhani
Copy link
Contributor

@HRouhani HRouhani commented Jul 18, 2024

Screenshot from 2024-07-18 17-53-05

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

Screenshot from 2024-07-18 18-11-16

Copy link
Contributor

github-actions bot commented Jul 18, 2024

Test Results

3 079 tests  ±0   3 078 ✅ ±0   1m 22s ⏱️ -3s
  363 suites ±0       1 💤 ±0 
   27 files   ±0       0 ❌ ±0 

Results for commit 8b48eec. ± Comparison against base commit a47aaae.

♻️ This comment has been updated with latest results.

This comment has been minimized.

return nil, err
}

return []interface{}{mqlApprovalSettings}, nil
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, thank you!

HRouhani added 3 commits July 19, 2024 07:03
Signed-off-by: Hossein Rouhani <[email protected]>
Signed-off-by: Hossein Rouhani <[email protected]>
@HRouhani HRouhani force-pushed the hossein/gitlab-approvalSettings-1 branch from d70c17b to 8b48eec Compare July 19, 2024 05:17
@vjeffrey vjeffrey merged commit eb5de30 into main Jul 19, 2024
15 checks passed
@vjeffrey vjeffrey deleted the hossein/gitlab-approvalSettings-1 branch July 19, 2024 14:55
@github-actions github-actions bot locked and limited conversation to collaborators Jul 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants