π OpenHands: AI-Driven Development
Add public vs private info for repo list (#7937)
Rohit Malhotrac18475ddc2ec
diff --git a/openhands/integrations/github/github_service.py b/openhands/integrations/github/github_service.pyindex c91865039b..761f310ca5 100644--- a/openhands/integrations/github/github_service.py+++ b/openhands/integrations/github/github_service.py@@ -179,6 +179,7 @@ class GitHubService(GitService):full_name=repo.get('full_name'),stargazers_count=repo.get('stargazers_count'),git_provider=ProviderType.GITHUB,+ is_public=not repo.get('private', True))for repo in all_repos]diff --git a/openhands/integrations/gitlab/gitlab_service.py b/openhands/integrations/gitlab/gitlab_service.pyindex 26bac72dd8..d265872ff1 100644--- a/openhands/integrations/gitlab/gitlab_service.py+++ b/openhands/integrations/gitlab/gitlab_service.py@@ -225,6 +225,7 @@ class GitLabService(GitService):full_name=repo.get('path_with_namespace'),stargazers_count=repo.get('star_count'),git_provider=ProviderType.GITLAB,+ is_public = repo.get('visibility') == 'public')for repo in all_repos]diff --git a/openhands/integrations/service_types.py b/openhands/integrations/service_types.pyindex fdb5a5339b..026ebfcb2a 100644--- a/openhands/integrations/service_types.py+++ b/openhands/integrations/service_types.py@@ -39,6 +39,7 @@ class Repository(BaseModel):id: intfull_name: strgit_provider: ProviderType+ is_public: boolstargazers_count: int | None = Nonelink_header: str | None = Nonepushed_at: str | None = None # ISO 8601 format date string