You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use this plugin in an enterprise environment for my customer.
I noticed that version v10.0.4 which is included in semantic-release >= 23.0.2 has a different behavior regarding a trailing slash
config anonymized:
GITHUB_API_URL=https://acme.org/api/v3/
error log anonymized:
12:06:18 [12:06:17 PM] [semantic-release] › ✘ EMISSINGREPO The repository my-department/my-repo doesn't exist.
12:06:18 The semantic-release repositoryUrl option must refer to your GitHub repository. The repository must be accessible with the GitHub API (https://developer.github.com/v3).
If I remove the trailing slash from the environment variable, everything works fine again.
As I feel trailing slashes in URLs are a common pitfall I'd appreciate a solution that normalizes the API URL. Especially because the behavior prior to 10.0.4 was different
The text was updated successfully, but these errors were encountered:
Indeed this happens because gitHubApiUrl (unlike gitHubUrl) is not passed through parseUrl which seems to also remove trailing slashes. I think we should add this to bring back previous behavior. If you agree I'll be happy to send a PR.
I use this plugin in an enterprise environment for my customer.
I noticed that version v10.0.4 which is included in semantic-release >= 23.0.2 has a different behavior regarding a trailing slash
config anonymized:
GITHUB_API_URL=https://acme.org/api/v3/
error log anonymized:
If I remove the trailing slash from the environment variable, everything works fine again.
As I feel trailing slashes in URLs are a common pitfall I'd appreciate a solution that normalizes the API URL. Especially because the behavior prior to 10.0.4 was different
The text was updated successfully, but these errors were encountered: