Model representing a GitHub repository.
| 155 | |
| 156 | |
| 157 | class GitHubRepository(BaseModel): |
| 158 | """ |
| 159 | Model representing a GitHub repository. |
| 160 | """ |
| 161 | |
| 162 | name: str = Field( |
| 163 | description="Name of the repository" |
| 164 | ) |
| 165 | |
| 166 | full_name: str = Field( |
| 167 | description="Full name of the repository (owner/repo)" |
| 168 | ) |
| 169 | |
| 170 | description: Optional[str] = Field( |
| 171 | default=None, |
| 172 | description="Description of the repository" |
| 173 | ) |
| 174 | |
| 175 | url: str = Field( |
| 176 | description="URL of the repository" |
| 177 | ) |
| 178 | |
| 179 | default_branch: str = Field( |
| 180 | description="Default branch of the repository" |
| 181 | ) |
| 182 | |
| 183 | stars: int = Field( |
| 184 | description="Number of stars the repository has" |
| 185 | ) |
| 186 | |
| 187 | forks: int = Field( |
| 188 | description="Number of forks the repository has" |
| 189 | ) |
| 190 | |
| 191 | open_issues: int = Field( |
| 192 | description="Number of open issues in the repository" |
| 193 | ) |
| 194 | |
| 195 | language: Optional[str] = Field( |
| 196 | default=None, |
| 197 | description="Primary language of the repository" |
| 198 | ) |
| 199 | |
| 200 | private: bool = Field( |
| 201 | default=False, |
| 202 | description="Whether the repository is private" |
| 203 | ) |
| 204 | |
| 205 | created_at: Optional[str] = Field( |
| 206 | default=None, |
| 207 | description="When the repository was created (ISO 8601 format)" |
| 208 | ) |
| 209 | |
| 210 | updated_at: Optional[str] = Field( |
| 211 | default=None, |
| 212 | description="When the repository was last updated (ISO 8601 format)" |
| 213 | ) |
| 214 |
no test coverage detected