Skip to content

Conversation

bitdriftr
Copy link
Contributor

See #1668 for details about the issue. Here I will discuss about the fix implementation.

If the given URL works out of the box or if a single token is available in the environment, the behaviour remains unchanged.
However if there is multiple tokens available, it will perform a git.verifyAuth call for each of them, and return the first of them that is working.
If none of them are working, it will return the URL as is.

This behaviour is tested in integration.test.js. It isn't tested in get-git-auth-url.test.js because I need gitbox functionalities to test it.

Copy link
Member

@gr2m gr2m left a comment

Choose a reason for hiding this comment

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

Great work! Just a small typo. I would have fixed it myself but don't have write access to your fork

bitdriftr and others added 3 commits October 29, 2020 11:13
@bitdriftr bitdriftr force-pushed the fix-multiple-git-tokens branch from 2dffc91 to 0ec1718 Compare October 29, 2020 10:23
@bitdriftr
Copy link
Contributor Author

bitdriftr commented Oct 29, 2020

Fixed the typo and conflicts, ready to merge!

Copy link
Member

@gr2m gr2m left a comment

Choose a reason for hiding this comment

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

Thanks 👍🏼

@gr2m gr2m merged commit 2bf3771 into semantic-release:master Oct 29, 2020
@semantic-release-bot
Copy link
Collaborator

🎉 This PR is included in version 17.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

This was referenced Mar 10, 2021
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.

3 participants