diff --git a/docs/source/changelog.md b/docs/source/changelog.md index cbd40d9..68401dc 100644 --- a/docs/source/changelog.md +++ b/docs/source/changelog.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [1.10.2] - 2022-10-26 + +### Fixed + +- Fixed bug https://github.com/andrew-hossack/dash-tools/issues/65 where using http for git remote url doesn't work; thanks [@mtzirkel](https://github.com/mtzirkel) for support! + ## [1.10.1] - 2022-10-23 ### Changed diff --git a/docs/source/conf.py b/docs/source/conf.py index 68bb0b9..59ba38c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,6 +1,6 @@ # -- Project information -__version__ = '1.10.1' +__version__ = '1.10.2' project = 'DashTools' author = 'Andrew Hossack' diff --git a/src/dashtools/dashboard/pages/deployPage.py b/src/dashtools/dashboard/pages/deployPage.py index 2162eb4..08fb312 100644 --- a/src/dashtools/dashboard/pages/deployPage.py +++ b/src/dashtools/dashboard/pages/deployPage.py @@ -24,7 +24,9 @@ def setGithubUrl(self, config_remote_origin_url_raw: str): if not config_remote_origin_url_raw: self.githubUrl = None return - self.githubUrl = f'https://github.com/{config_remote_origin_url_raw.split(":")[1].split(".git")[0]}' + remote_url = config_remote_origin_url_raw.replace( + 'git@github.com:', '').replace('https://github.com/', '').replace('.git', '') + self.githubUrl = f'https://github.com/{remote_url}' def isDeployReady(self) -> bool: """ returns if app is ready to be deployed """ diff --git a/src/dashtools/version.py b/src/dashtools/version.py index 7fceb7e..8125927 100644 --- a/src/dashtools/version.py +++ b/src/dashtools/version.py @@ -1,3 +1,3 @@ # Version in this file must match version for docs/source/version.py! -__version__ = '1.10.1' +__version__ = '1.10.2'