Fix: Reduce log noise for optional org-level .openhands repositories (#12456)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Graham Neubig
2026-01-15 18:27:34 -05:00
committed by GitHub
parent 6e4ac8e2ce
commit f5315887ec
6 changed files with 26 additions and 8 deletions

View File

@@ -63,9 +63,13 @@ class AuthUserContext(UserContext):
self._provider_handler = provider_handler
return provider_handler
async def get_authenticated_git_url(self, repository: str) -> str:
async def get_authenticated_git_url(
self, repository: str, is_optional: bool = False
) -> str:
provider_handler = await self.get_provider_handler()
url = await provider_handler.get_authenticated_git_url(repository)
url = await provider_handler.get_authenticated_git_url(
repository, is_optional=is_optional
)
return url
async def get_latest_token(self, provider_type: ProviderType) -> str | None: