-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(datasource/gitlab-packages): prefer checking for conan_package_name if it exists #33099
base: main
Are you sure you want to change the base?
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.
Please add a test
Head branch was pushed to by a user without write access
Should I update the It seems like that's the reason the pipeline fails. |
Sorry, didn't see the thumbs up until now. |
Is there something I can do about the |
expect(res).toMatchSnapshot(); | ||
expect(res?.releases).toHaveLength(3); |
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.
use toEqual
here
Changes
Checks if
conan_package_name
exists and matches the filtered package name for the gitlab-packages datasource.Context
When querying for uploaded Conan packages on GitLab, the
name
value contains the version and the channel as well, and this doesn't pass the filter inlib/modules/datasource/gitlab-packages/index.ts
.conan_package_name
, if it exists, contains only the package name.This can also be seen in the GitLab documentation as an example here: https://gitlab.com/gitlab-org/gitlab/-/blob/master/doc/api/packages.md?plain=1#L69-70
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: