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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ✨ Add Bitbucket config #132

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.6.4

### Prs in Release

- [Add Bitbucket config in scripts.](https://github.com/jdoiro3/mkdocs-multirepo-plugin/pull/132)

## 0.6.3

### Prs in Release
Expand Down
3 changes: 3 additions & 0 deletions mkdocs_multirepo_plugin/scripts/sparse_clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ if [[ -n "$AccessToken" ]]; then
git config http.extraheader "AUTHORIZATION: bearer $AccessToken"
elif [[ -n "$GithubAccessToken" ]]; then
url_to_use="${protocol}://x-access-token:$GithubAccessToken@$url_rest"
elif [[ -n "$BitbucketAcessToken" ]]; then
url_to_use="$url"
git config http.extraheader "AUTHORIZATION: Bearer $BitbucketAcessToken"
else
url_to_use="$url"
fi
Expand Down
3 changes: 3 additions & 0 deletions mkdocs_multirepo_plugin/scripts/sparse_clone_old.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ if [[ -n "$AccessToken" ]]; then
git config http.extraheader "AUTHORIZATION: bearer $AccessToken"
elif [[ -n "$GithubAccessToken" ]]; then
url_to_use="${protocol}://x-access-token:$GithubAccessToken@$url_rest"
elif [[ -n "$BitbucketAcessToken" ]]; then
url_to_use="$url"
git config http.extraheader "AUTHORIZATION: Bearer $BitbucketAcessToken"
else
url_to_use="$url"
fi
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mkdocs-multirepo-plugin"
version = "0.6.3"
version = "0.6.4"
Copy link
Owner

Choose a reason for hiding this comment

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

Can you please remove this change? I'd like to combine other PRs into one new release. You can keep the CHANELOG changes since I can update it after merging this.

Copy link
Owner

Choose a reason for hiding this comment

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

You'll need to make the change b/c CI automatically creates a new release based on this version number.

description = "Build documentation in multiple repos into one site."
authors = ["jdoiro3 <[email protected]>"]
license = "MIT"
Expand Down
Loading