Skip to content

Commit 9471f62

Browse files
committed
feat: bitbucket cloud support
Signed-off-by: Adam Setch <[email protected]>
1 parent 535b37f commit 9471f62

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/utils/links.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ export function openGitHubPulls(hostname: Hostname) {
3434
}
3535

3636
export function openAccountProfile(account: Account) {
37-
const url = new URL(`https://${account.hostname}`);
38-
url.pathname = account.user.login;
39-
openExternalLink(url.toString() as Link);
37+
if (account.platform === 'Bitbucket Cloud') {
38+
openExternalLink('https://bitbucket.org/account/settings/' as Link);
39+
} else {
40+
const url = new URL(`https://${account.hostname}`);
41+
url.pathname = account.user.login;
42+
openExternalLink(url.toString() as Link);
43+
}
4044
}
4145

4246
export function openUserProfile(user: SubjectUser) {

0 commit comments

Comments
 (0)