diff --git a/dvc/repo/experiments/push.py b/dvc/repo/experiments/push.py index 25121293c..160970c47 100644 --- a/dvc/repo/experiments/push.py +++ b/dvc/repo/experiments/push.py @@ -58,7 +58,7 @@ def notify_refs_to_studio( _, repo_url = get_remote_repo(repo.scm.dulwich.repo, git_remote) studio_url = config.get("studio_url") - d = studio.notify_refs(repo_url, token, studio_url=studio_url, **refs) + d = studio.notify_refs(repo_url, token, base_url=studio_url, **refs) return d.get("url") diff --git a/dvc/utils/studio.py b/dvc/utils/studio.py index b98166dc6..802586b27 100644 --- a/dvc/utils/studio.py +++ b/dvc/utils/studio.py @@ -40,7 +40,7 @@ def notify_refs( repo_url: str, token: str, *, - studio_url: Optional[str] = STUDIO_URL, + base_url: Optional[str] = STUDIO_URL, **refs: List[str], ) -> Dict[str, Any]: extra_keys = refs.keys() - {"pushed", "removed"} @@ -52,12 +52,12 @@ def notify_refs( logger.debug( "notifying Studio%s about updated experiments", - f" ({studio_url})" if studio_url else "", + f" ({base_url})" if base_url else "", ) data = {"repo_url": repo_url, "client": "dvc", "refs": refs} try: - r = post("/webhook/dvc", token, data, base_url=studio_url) + r = post("/webhook/dvc", token, data, base_url=base_url) except requests.RequestException as e: logger.trace("", exc_info=True) # type: ignore[attr-defined]