Skip to content

πŸ™Œ OpenHands: AI-Driven Development

[Fix]: mismatch between repo object definition between FE and BE (#7953)

Rohit Malhotra20bf48b6933e
diff --git a/frontend/__tests__/components/features/git/git-repo-selector.test.tsx b/frontend/__tests__/components/features/git/git-repo-selector.test.tsx
index 723864a18f..6a982a5697 100644
--- a/frontend/__tests__/components/features/git/git-repo-selector.test.tsx
+++ b/frontend/__tests__/components/features/git/git-repo-selector.test.tsx
@@ -56,12 +56,16 @@ describe("GitRepositorySelector", () => {
full_name: "test/repo1",
git_provider: "github" as Provider,
stargazers_count: 100,
+ is_public: true,
+ pushed_at: "2023-01-01T00:00:00Z",
},
{
id: 2,
full_name: "test/repo2",
git_provider: "github" as Provider,
stargazers_count: 200,
+ is_public: true,
+ pushed_at: "2023-01-02T00:00:00Z",
},
];
diff --git a/frontend/src/types/git.d.ts b/frontend/src/types/git.d.ts
index b45c934e99..8a1d9f3a48 100644
--- a/frontend/src/types/git.d.ts
+++ b/frontend/src/types/git.d.ts
@@ -19,8 +19,10 @@ interface GitRepository {
id: number;
full_name: string;
git_provider: Provider;
+ is_public: boolean;
stargazers_count?: number;
link_header?: string;
+ pushed_at?: string;
}
interface GitHubCommit {