diff --git a/src/activity.ts b/src/activity.ts index 56e9ca9..25153fb 100644 --- a/src/activity.ts +++ b/src/activity.ts @@ -78,8 +78,8 @@ export async function activity(previous: ActivityPayload = {}) { let repo = git.repositories.find((repo) => repo.ui.selected)?.state.remotes[0]?.fetchUrl; if (repo) { - if (repo.startsWith('git@')) { - repo = repo.replace(':', '/').replace('git@', 'https://').replace('.git', ''); + if (repo.startsWith('git@') || repo.startsWith('ssh://')) { + repo = repo.replace('ssh://', '').replace(':', '/').replace('git@', 'https://').replace('.git', ''); } else { repo = repo.replace(/(https:\/\/)([^@]*)@(.*?$)/, '$1$3').replace('.git', ''); }