PullRequest
🛈 DocStrings¶
Pull request model.
Source code in src/githarbor/core/models.py
assignees
class-attribute
instance-attribute
¶
assignees: list[User] = field(default_factory=list)
Assigned reviewers.
changed_files
class-attribute
instance-attribute
¶
Number of files changed.
closed_at
class-attribute
instance-attribute
¶
Closing timestamp if closed.
comments
class-attribute
instance-attribute
¶
comments: list[Comment] = field(default_factory=list)
PR comments.
commits_count
class-attribute
instance-attribute
¶
Number of commits.
created_at
class-attribute
instance-attribute
¶
Creation timestamp.
description
class-attribute
instance-attribute
¶
Description/body of the pull request.
labels
class-attribute
instance-attribute
¶
labels: list[Label] = field(default_factory=list)
Applied labels.
mergeable
class-attribute
instance-attribute
¶
Whether PR can be merged.
merged_at
class-attribute
instance-attribute
¶
Merge timestamp if merged.
merged_by
class-attribute
instance-attribute
¶
merged_by: User | None = None
User who merged the PR.
review_comments_count
class-attribute
instance-attribute
¶
Number of review comments.
state
class-attribute
instance-attribute
¶
Current state (open/closed/merged).
updated_at
class-attribute
instance-attribute
¶
Last update timestamp.