Skip to content

Conversation

JonasSchubert
Copy link
Contributor

@JonasSchubert JonasSchubert commented Feb 11, 2023

The URL is dependent on the configuration of asset storage which might defer in any Gitlab instance. The tested instance I used in #491 uses an external provider, but private hosted instances will use a Gitlab mount.

This PR checks whether an URL is of valid scheme (http, https or ftp) and uses the URL if already valid. If it is a relative path as mentioned in #497 it will use urlJoin to create a valid URL.

Closes #497

Copy link
Contributor

@fgreinacher fgreinacher left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@fgreinacher fgreinacher changed the title fix(generic-packages): set correct URL for external provider and default storage #497 fix(generic-packages): set correct URL for external provider and default storage Feb 14, 2023
@749
Copy link

749 commented Feb 15, 2023

Looking good, Thanks for the quick diagnosis and response @JonasSchubert

@fgreinacher fgreinacher merged commit bae2f6f into semantic-release:master Feb 15, 2023
@github-actions
Copy link

🎉 This PR is included in version 11.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: generic_package upload causes Error 400 on release creation

3 participants