MCPcopy Create free account
hub / github.com/agenticsorg/edge-agents / GitHubPullRequest

Class GitHubPullRequest

scripts/agents/devops/src/github/github_models.py:281–381  ·  view source on GitHub ↗

Model representing a GitHub pull request.

Source from the content-addressed store, hash-verified

279
280
281class GitHubPullRequest(BaseModel):
282 """
283 Model representing a GitHub pull request.
284 """
285
286 number: int = Field(
287 description="Pull request number"
288 )
289
290 title: str = Field(
291 description="Title of the pull request"
292 )
293
294 body: Optional[str] = Field(
295 default=None,
296 description="Body content of the pull request"
297 )
298
299 state: str = Field(
300 description="State of the pull request (open, closed, or merged)"
301 )
302
303 created_at: str = Field(
304 description="When the pull request was created (ISO 8601 format)"
305 )
306
307 updated_at: str = Field(
308 description="When the pull request was last updated (ISO 8601 format)"
309 )
310
311 closed_at: Optional[str] = Field(
312 default=None,
313 description="When the pull request was closed (ISO 8601 format)"
314 )
315
316 merged_at: Optional[str] = Field(
317 default=None,
318 description="When the pull request was merged (ISO 8601 format)"
319 )
320
321 url: str = Field(
322 description="URL of the pull request"
323 )
324
325 head_branch: str = Field(
326 description="Name of the head branch"
327 )
328
329 base_branch: str = Field(
330 description="Name of the base branch"
331 )
332
333 labels: List[str] = Field(
334 default_factory=list,
335 description="Labels applied to the pull request"
336 )
337
338 assignees: List[str] = Field(

Callers 1

list_pull_requestsFunction · 0.70

Calls 1

FieldFunction · 0.50

Tested by

no test coverage detected