mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
Refactor: Github Service (#6580)
Co-authored-by: Engel Nyst <enyst@users.noreply.github.com>
This commit is contained in:
17
openhands/server/data_models/gh_types.py
Normal file
17
openhands/server/data_models/gh_types.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class GitHubUser(BaseModel):
|
||||
id: int
|
||||
login: str
|
||||
avatar_url: str
|
||||
company: str | None = None
|
||||
name: str | None = None
|
||||
email: str | None = None
|
||||
|
||||
|
||||
class GitHubRepository(BaseModel):
|
||||
id: int
|
||||
full_name: str
|
||||
stargazers_count: int | None = None
|
||||
link_header: str | None = None
|
||||
Reference in New Issue
Block a user