We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Bitbucket uses x-token-auth instead of x-access-token in the git URL (https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/). The following change should work, but I am unable to test it:
x-token-auth
x-access-token
if re_match "${GIT_REPOSITORY:-}" '^https://github.com/'; then _auth="x-access-token:$GIT_TOKEN" else _auth="oauth2:$GIT_TOKEN" fi
if re_match "${GIT_REPOSITORY:-}" '^https://github.com/'; then _auth="x-access-token:$GIT_TOKEN" elif re_match "${GIT_REPOSITORY:-}" '^https://bitbucket.org/'; then _auth="x-token-auth:$GIT_TOKEN" else _auth="oauth2:$GIT_TOKEN" fi
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bitbucket uses
x-token-auth
instead ofx-access-token
in the git URL (https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/). The following change should work, but I am unable to test it:The text was updated successfully, but these errors were encountered: