models
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| Asset githarbor.core.models Model representing a release asset. |
||
| Branch githarbor.core.models Branch(name: 'str', sha: 'str', protected: 'bool' \= False, default: 'bool' \= False, created_at: 'datetime | None' \= None, updated_at: 'datetime | None' \= None, last_commit_date: 'datetime | None' \= None, last_commit_message: 'str | None' \= None, last_commit_author: 'User | None' \= None, protection_rules: 'dict[str, Any] | None' \= None) |
||
| Comment githarbor.core.models Comment(id: 'str', body: 'str', author: 'User', created_at: 'datetime', updated_at: 'datetime | None' \= None, reactions: 'dict[str, int]' \= <factory>, reply_to: 'str | None' \= None, url: 'str | None' \= None) |
||
| Commit githarbor.core.models Commit(sha: 'str', message: 'str', author: 'User | None' \= None, created_at: 'datetime | None' \= None, committer: 'User | None' \= None, url: 'str | None' \= None, stats: 'dict[str, int]' \= <factory>, parents: 'list[str]' \= <factory>, verified: 'bool' \= False, files_changed: 'list[str]' \= <factory>) |
||
| Issue githarbor.core.models Issue(number: 'int', title: 'str', description: 'str' \= '', state: 'str' \= 'open', author: 'User | None' \= None, assignee: 'User | None' \= None, labels: 'list[Label]' \= <factory>, created_at: 'datetime | None' \= None, updated_at: 'datetime | None' \= None, closed_at: 'datetime | None' \= None, closed: 'bool' \= False, comments_count: 'int' \= 0, url: 'str | None' \= None, milestone: 'str | None' \= None) |
||
| Label githarbor.core.models Label(name: 'str', color: 'str' \= '', description: 'str' \= '', created_at: 'datetime | None' \= None, updated_at: 'datetime | None' \= None, url: 'str | None' \= None) |
||
| PullRequest githarbor.core.models Pull request model. |
||
| Release githarbor.core.models Model representing a repository release. |
||
| Tag githarbor.core.models Model representing a repository tag. |
||
| User githarbor.core.models User or organization account on a Git hosting platform. |
||
| Workflow githarbor.core.models Workflow(id: 'str', name: 'str', path: 'str', state: 'str', created_at: 'datetime | None' \= None, updated_at: 'datetime | None' \= None, description: 'str' \= '', triggers: 'list[str]' \= <factory>, disabled: 'bool' \= False, last_run_at: 'datetime | None' \= None, badge_url: 'str | None' \= None, definition: 'str | None' \= None, runs_count: 'int' \= 0, success_count: 'int' \= 0) |
||
| WorkflowRun githarbor.core.models WorkflowRun(id: 'str', name: 'str', workflow_id: 'str', status: 'str', conclusion: 'str | None', branch: 'str | None' \= None, commit_sha: 'str | None' \= None, url: 'str | None' \= None, created_at: 'datetime | None' \= None, updated_at: 'datetime | None' \= None, started_at: 'datetime | None' \= None, completed_at: 'datetime | None' \= None, run_number: 'int | None' \= None, jobs_count: 'int | None' \= None, logs_url: 'str | None' \= None) |
🛈 DocStrings¶
Base model for Githarbor.
Asset
dataclass
¶
Model representing a release asset.
Source code in src/githarbor/core/models.py
Branch
dataclass
¶
Source code in src/githarbor/core/models.py
created_at
class-attribute
instance-attribute
¶
Date and time when the branch was created.
default
class-attribute
instance-attribute
¶
Whether this is the default branch of the repository.
last_commit_author
class-attribute
instance-attribute
¶
last_commit_author: User | None = None
Author of the last commit.
last_commit_date
class-attribute
instance-attribute
¶
Date of the last commit.
last_commit_message
class-attribute
instance-attribute
¶
Message of the last commit.
protected
class-attribute
instance-attribute
¶
Whether the branch has protection rules enabled.
protection_rules
class-attribute
instance-attribute
¶
Branch protection settings if any.
updated_at
class-attribute
instance-attribute
¶
Date and time when the branch was last updated.
Comment
dataclass
¶
Source code in src/githarbor/core/models.py
Commit
dataclass
¶
Source code in src/githarbor/core/models.py
author
class-attribute
instance-attribute
¶
author: User | None = None
User who authored the commit.
committer
class-attribute
instance-attribute
¶
committer: User | None = None
User who committed the changes.
created_at
class-attribute
instance-attribute
¶
Date and time when the commit was authored.
files_changed
class-attribute
instance-attribute
¶
Changed file paths.
parents
class-attribute
instance-attribute
¶
List of parent commit SHAs.
stats
class-attribute
instance-attribute
¶
Commit statistics.
Issue
dataclass
¶
Source code in src/githarbor/core/models.py
assignee
class-attribute
instance-attribute
¶
assignee: User | None = None
User who is assigned to the issue.
closed_at
class-attribute
instance-attribute
¶
Date and time when the issue was closed.
created_at
class-attribute
instance-attribute
¶
Date and time when the issue was created.
labels
class-attribute
instance-attribute
¶
labels: list[Label] = field(default_factory=list)
List of labels attached to the issue.
updated_at
class-attribute
instance-attribute
¶
Date and time when the issue was last updated.
Label
dataclass
¶
Source code in src/githarbor/core/models.py
PullRequest
dataclass
¶
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.
Release
dataclass
¶
Model representing a repository release.
Source code in src/githarbor/core/models.py
assets
class-attribute
instance-attribute
¶
assets: list[Asset] = field(default_factory=list)
List of assets attached to the release.
author
class-attribute
instance-attribute
¶
author: User | None = None
User who created the release.
created_at
class-attribute
instance-attribute
¶
Date and time when the release was created.
description
class-attribute
instance-attribute
¶
Description/body of the release.
prerelease
class-attribute
instance-attribute
¶
Whether this is a pre-release.
published_at
class-attribute
instance-attribute
¶
Date and time when the release was published.
target_commitish
class-attribute
instance-attribute
¶
The branch/tag/commit the release targets.
Tag
dataclass
¶
Model representing a repository tag.
Source code in src/githarbor/core/models.py
User
dataclass
¶
User or organization account on a Git hosting platform.
Source code in src/githarbor/core/models.py
avatar_url
class-attribute
instance-attribute
¶
URL of the user's avatar image.
company
class-attribute
instance-attribute
¶
Company/organization the user belongs to.
created_at
class-attribute
instance-attribute
¶
Date and time when the user account was created.
following
class-attribute
instance-attribute
¶
Number of users being followed.
gravatar_id
class-attribute
instance-attribute
¶
Gravatar id for this user.
hireable
class-attribute
instance-attribute
¶
Whether user is available for hiring
is_admin
class-attribute
instance-attribute
¶
Whether the user has admin privileges.
last_activity_on
class-attribute
instance-attribute
¶
Date of last activity.
location
class-attribute
instance-attribute
¶
Geographic location of the user.
public_repos
class-attribute
instance-attribute
¶
Number of public repositories.
state
class-attribute
instance-attribute
¶
State of the user (active / inactive).
twitter_username
class-attribute
instance-attribute
¶
X / Twitter username of this user
Workflow
dataclass
¶
Source code in src/githarbor/core/models.py
badge_url
class-attribute
instance-attribute
¶
URL to the badge image for the workflow.
created_at
class-attribute
instance-attribute
¶
Date and time when the workflow was created.
definition
class-attribute
instance-attribute
¶
Content of the workflow definition file.
disabled
class-attribute
instance-attribute
¶
Indicates if the workflow is disabled.
last_run_at
class-attribute
instance-attribute
¶
Date and time when the workflow was last run.
triggers
class-attribute
instance-attribute
¶
List of triggers that can start the workflow.
updated_at
class-attribute
instance-attribute
¶
Date and time when the workflow was last updated.
WorkflowRun
dataclass
¶
Source code in src/githarbor/core/models.py
branch
class-attribute
instance-attribute
¶
Branch the workflow was run on.
commit_sha
class-attribute
instance-attribute
¶
SHA of the commit that triggered the workflow.
completed_at
class-attribute
instance-attribute
¶
Date and time when the workflow run completed.
created_at
class-attribute
instance-attribute
¶
Date and time when the workflow run was created.
run_number
class-attribute
instance-attribute
¶
Sequential run number.
started_at
class-attribute
instance-attribute
¶
Date and time when the workflow run started.
updated_at
class-attribute
instance-attribute
¶
Date and time when the workflow run was last updated.