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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always strip url scheme from domain #676

Merged
merged 6 commits into from
Apr 13, 2024

Conversation

lukester1975
Copy link
Contributor

Hi

Whilst fixing the tests for #675 I noticed something with hvcs_api_domain and api_url.

hvcs_api_domain only has https:// stripped if read from the environment. As a result api_url can end up as https://https://... if hvcs_api_domain is explicitly passed with the url scheme (which the tests do). I'm not sure if it's intentional given the test case, but it's surely not for api_url 馃榾

Maybe this is better as an issue rather than PR, but in case it really is trivial here's a mod normalising hvcs_api_domain across github/gitea/gitlab by always stripping https:// (and hvcs_domain, too).

Thanks

@github-actions github-actions bot added the stale label Mar 25, 2024
@codejedi365 codejedi365 removed the stale label Mar 30, 2024
@codejedi365 codejedi365 self-assigned this Mar 30, 2024
@codejedi365 codejedi365 force-pushed the strip-domain branch 4 times, most recently from 904b321 to 995cd5a Compare April 5, 2024 04:27
@codejedi365 codejedi365 changed the title Always strip domain Always strip url scheme from domain Apr 6, 2024
@codejedi365 codejedi365 force-pushed the strip-domain branch 2 times, most recently from c63cea7 to 741f512 Compare April 6, 2024 19:55
@codejedi365 codejedi365 added the blocked Requires something else before merge or fix label Apr 6, 2024
@codejedi365 codejedi365 merged commit 5cfdb24 into python-semantic-release:master Apr 13, 2024
7 checks passed
@codejedi365 codejedi365 added bug Something isn't working properly and removed blocked Requires something else before merge or fix labels Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working properly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants