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(pre-commit): Gitlab Custom RegistryUrl not honored #25682
fix(pre-commit): Gitlab Custom RegistryUrl not honored #25682
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.
I'd like to understand why other parts of this function return registryUrls: [hostname]
and it seems to work. I had though that registryUrls must start with https://
so wonder if they're being massaged somewhere else
Yes, the https:// prefix ist stripped here:
Regarding the other parts of the function which return registryUrls, they have the https:// prefix as it is added here:
As the function already returns before line 39 I needed to add it. Currently I'm wondering if anything below line 39 is actually every executed. |
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.
LGTM but you need to fix the git author and then force push changes
- registryUrl is only returned to the gitlab-tags datasource for custom URLs - Added new test cases for custom gitlab URL.
6c67529
to
ccabecd
Compare
🎉 This PR is included in version 37.57.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes
The pre-commit manager does not return custom registryUrls to the gitlab-tags datasource which then always defaults to gitlab.com.
This PR always returns a registryUrl back to the datasource which fixes the behaviour. The tests have been edited accordingly to pass.
Context
Fixes #25157
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: