Skip to content

Commit 131e053

Browse files
committed
Add support for Bitbucket in repository entity and URL generation
1 parent ed178e4 commit 131e053

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/models/src/repository/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ import { BaseEntity } from "src/_base";
33
export type RepositoryEntity = BaseEntity & {
44
owner: string;
55
name: string;
6-
provider: "github" | "gitlab";
6+
provider: "github" | "gitlab" | "bitbucket";
7+
stars: number;
78
};

web/src/utils/repository.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export const getRepositoryURL = ({
1010
return `https://www.github.com/${owner}/${name}`;
1111
case "gitlab":
1212
return `https://www.gitlab.com/${owner}/${name}`;
13+
case "bitbucket":
14+
return `https://bitbucket.org/${owner}/${name}`;
1315
default:
1416
return "";
1517
}

0 commit comments

Comments
 (0)