Skip to content

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
                          @dataclass
                          class Asset:
                              """Model representing a release asset."""
                          
                              name: str
                              """Name of the asset."""
                              url: str
                              """Download URL for the asset."""
                              size: int
                              """Size of the asset in bytes."""
                              download_count: int = 0
                              """Number of times the asset has been downloaded."""
                              created_at: datetime | None = None
                              """Date and time when the asset was created."""
                              updated_at: datetime | None = None
                              """Date and time when the asset was last updated."""
                          

                          created_at class-attribute instance-attribute

                          created_at: datetime | None = None
                          

                          Date and time when the asset was created.

                          download_count class-attribute instance-attribute

                          download_count: int = 0
                          

                          Number of times the asset has been downloaded.

                          name instance-attribute

                          name: str
                          

                          Name of the asset.

                          size instance-attribute

                          size: int
                          

                          Size of the asset in bytes.

                          updated_at class-attribute instance-attribute

                          updated_at: datetime | None = None
                          

                          Date and time when the asset was last updated.

                          url instance-attribute

                          url: str
                          

                          Download URL for the asset.

                          Branch dataclass

                          Source code in src/githarbor/core/models.py
                          @dataclass
                          class Branch:
                              name: str
                              """Name of the branch."""
                              sha: str
                              """SHA hash of the latest commit on this branch."""
                              protected: bool = False
                              """Whether the branch has protection rules enabled."""
                              default: bool = False
                              """Whether this is the default branch of the repository."""
                              created_at: datetime | None = None
                              """Date and time when the branch was created."""
                              updated_at: datetime | None = None
                              """Date and time when the branch was last updated."""
                              last_commit_date: datetime | None = None
                              """Date of the last commit."""
                              last_commit_message: str | None = None
                              """Message of the last commit."""
                              last_commit_author: User | None = None
                              """Author of the last commit."""
                              protection_rules: dict[str, Any] | None = None
                              """Branch protection settings if any."""
                          

                          created_at class-attribute instance-attribute

                          created_at: datetime | None = None
                          

                          Date and time when the branch was created.

                          default class-attribute instance-attribute

                          default: bool = False
                          

                          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

                          last_commit_date: datetime | None = None
                          

                          Date of the last commit.

                          last_commit_message class-attribute instance-attribute

                          last_commit_message: str | None = None
                          

                          Message of the last commit.

                          name instance-attribute

                          name: str
                          

                          Name of the branch.

                          protected class-attribute instance-attribute

                          protected: bool = False
                          

                          Whether the branch has protection rules enabled.

                          protection_rules class-attribute instance-attribute

                          protection_rules: dict[str, Any] | None = None
                          

                          Branch protection settings if any.

                          sha instance-attribute

                          sha: str
                          

                          SHA hash of the latest commit on this branch.

                          updated_at class-attribute instance-attribute

                          updated_at: datetime | None = None
                          

                          Date and time when the branch was last updated.

                          Comment dataclass

                          Source code in src/githarbor/core/models.py
                          @dataclass
                          class Comment:
                              id: str
                              """Unique identifier for the comment."""
                              body: str
                              """Content of the comment."""
                              author: User
                              """User who wrote the comment."""
                              created_at: datetime
                              """Date and time when the comment was created."""
                              updated_at: datetime | None = None
                              """Date and time when the comment was last updated."""
                              reactions: dict[str, int] = field(default_factory=dict)
                              """Dictionary of reaction types and their counts."""
                              reply_to: str | None = None  # ID of parent comment if this is a reply
                              """ID of parent comment if this is a reply."""
                              url: str | None = None
                              """URL to the comment."""
                          

                          author instance-attribute

                          author: User
                          

                          User who wrote the comment.

                          body instance-attribute

                          body: str
                          

                          Content of the comment.

                          created_at instance-attribute

                          created_at: datetime
                          

                          Date and time when the comment was created.

                          id instance-attribute

                          id: str
                          

                          Unique identifier for the comment.

                          reactions class-attribute instance-attribute

                          reactions: dict[str, int] = field(default_factory=dict)
                          

                          Dictionary of reaction types and their counts.

                          reply_to class-attribute instance-attribute

                          reply_to: str | None = None
                          

                          ID of parent comment if this is a reply.

                          updated_at class-attribute instance-attribute

                          updated_at: datetime | None = None
                          

                          Date and time when the comment was last updated.

                          url class-attribute instance-attribute

                          url: str | None = None
                          

                          URL to the comment.

                          Commit dataclass

                          Source code in src/githarbor/core/models.py
                          @dataclass
                          class Commit:
                              sha: str
                              """Unique identifier for the commit."""
                              message: str
                              """Commit message."""
                              author: User | None = None
                              """User who authored the commit."""
                              created_at: datetime | None = None
                              """Date and time when the commit was authored."""
                              committer: User | None = None
                              """User who committed the changes."""
                              url: str | None = None
                              """URL to the commit details."""
                              stats: dict[str, int] = field(default_factory=dict)
                              """Commit statistics."""
                              parents: list[str] = field(default_factory=list)
                              """List of parent commit SHAs."""
                              verified: bool = False
                              """Signature verification status."""
                              files_changed: list[str] = field(default_factory=list)
                              """Changed file paths."""
                          

                          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

                          created_at: datetime | None = None
                          

                          Date and time when the commit was authored.

                          files_changed class-attribute instance-attribute

                          files_changed: list[str] = field(default_factory=list)
                          

                          Changed file paths.

                          message instance-attribute

                          message: str
                          

                          Commit message.

                          parents class-attribute instance-attribute

                          parents: list[str] = field(default_factory=list)
                          

                          List of parent commit SHAs.

                          sha instance-attribute

                          sha: str
                          

                          Unique identifier for the commit.

                          stats class-attribute instance-attribute

                          stats: dict[str, int] = field(default_factory=dict)
                          

                          Commit statistics.

                          url class-attribute instance-attribute

                          url: str | None = None
                          

                          URL to the commit details.

                          verified class-attribute instance-attribute

                          verified: bool = False
                          

                          Signature verification status.

                          Issue dataclass

                          Source code in src/githarbor/core/models.py
                          @dataclass
                          class Issue:
                              number: int
                              """Unique identifier for the issue."""
                              title: str
                              """Title of the issue."""
                              description: str = ""
                              """Description of the issue."""
                              state: str = "open"
                              """State of the issue."""
                              author: User | None = None
                              """User who created the issue."""
                              assignee: User | None = None
                              """User who is assigned to the issue."""
                              labels: list[Label] = field(default_factory=list)
                              """List of labels attached to the issue."""
                              created_at: datetime | None = None
                              """Date and time when the issue was created."""
                              updated_at: datetime | None = None
                              """Date and time when the issue was last updated."""
                              closed_at: datetime | None = None
                              """Date and time when the issue was closed."""
                              closed: bool = False
                              """Indicates if the issue is closed."""
                              comments_count: int = 0
                              """Number of comments."""
                              url: str | None = None
                              """URL to the issue."""
                              milestone: str | None = None
                              """Associated milestone."""
                          

                          assignee class-attribute instance-attribute

                          assignee: User | None = None
                          

                          User who is assigned to the issue.

                          author class-attribute instance-attribute

                          author: User | None = None
                          

                          User who created the issue.

                          closed class-attribute instance-attribute

                          closed: bool = False
                          

                          Indicates if the issue is closed.

                          closed_at class-attribute instance-attribute

                          closed_at: datetime | None = None
                          

                          Date and time when the issue was closed.

                          comments_count class-attribute instance-attribute

                          comments_count: int = 0
                          

                          Number of comments.

                          created_at class-attribute instance-attribute

                          created_at: datetime | None = None
                          

                          Date and time when the issue was created.

                          description class-attribute instance-attribute

                          description: str = ''
                          

                          Description of the issue.

                          labels class-attribute instance-attribute

                          labels: list[Label] = field(default_factory=list)
                          

                          List of labels attached to the issue.

                          milestone class-attribute instance-attribute

                          milestone: str | None = None
                          

                          Associated milestone.

                          number instance-attribute

                          number: int
                          

                          Unique identifier for the issue.

                          state class-attribute instance-attribute

                          state: str = 'open'
                          

                          State of the issue.

                          title instance-attribute

                          title: str
                          

                          Title of the issue.

                          updated_at class-attribute instance-attribute

                          updated_at: datetime | None = None
                          

                          Date and time when the issue was last updated.

                          url class-attribute instance-attribute

                          url: str | None = None
                          

                          URL to the issue.

                          Label dataclass

                          Source code in src/githarbor/core/models.py
                          @dataclass
                          class Label:
                              name: str
                              """Name of the label."""
                              color: str = ""  # Hex color code
                              """Hex color code for the label."""
                              description: str = ""
                              """Description of what the label represents."""
                              created_at: datetime | None = None
                              """Date and time when the label was created."""
                              updated_at: datetime | None = None
                              """Date and time when the label was last updated."""
                              url: str | None = None
                              """URL to the label."""
                          

                          color class-attribute instance-attribute

                          color: str = ''
                          

                          Hex color code for the label.

                          created_at class-attribute instance-attribute

                          created_at: datetime | None = None
                          

                          Date and time when the label was created.

                          description class-attribute instance-attribute

                          description: str = ''
                          

                          Description of what the label represents.

                          name instance-attribute

                          name: str
                          

                          Name of the label.

                          updated_at class-attribute instance-attribute

                          updated_at: datetime | None = None
                          

                          Date and time when the label was last updated.

                          url class-attribute instance-attribute

                          url: str | None = None
                          

                          URL to the label.

                          PullRequest dataclass

                          Pull request model.

                          Source code in src/githarbor/core/models.py
                          @dataclass
                          class PullRequest:
                              """Pull request model."""
                          
                              number: int
                              """Pull request number."""
                              title: str
                              """Title of the pull request."""
                              source_branch: str
                              """Branch containing the changes."""
                              target_branch: str
                              """Branch to merge into."""
                              description: str = ""
                              """Description/body of the pull request."""
                              state: str | None = None
                              """Current state (open/closed/merged)."""
                              created_at: datetime | None = None
                              """Creation timestamp."""
                              updated_at: datetime | None = None
                              """Last update timestamp."""
                              merged_at: datetime | None = None
                              """Merge timestamp if merged."""
                              closed_at: datetime | None = None
                              """Closing timestamp if closed."""
                              author: User | None = None
                              """PR creator."""
                              assignees: list[User] = field(default_factory=list)
                              """Assigned reviewers."""
                              labels: list[Label] = field(default_factory=list)
                              """Applied labels."""
                              comments: list[Comment] = field(default_factory=list)
                              """PR comments."""
                              merged_by: User | None = None
                              """User who merged the PR."""
                              review_comments_count: int | None = None
                              """Number of review comments."""
                              commits_count: int | None = None
                              """Number of commits."""
                              additions: int | None = None
                              """Lines added."""
                              deletions: int | None = None
                              """Lines deleted."""
                              changed_files: int | None = None
                              """Number of files changed."""
                              mergeable: bool | None = None
                              """Whether PR can be merged."""
                              url: str | None = None
                              """URL to the PR."""
                          

                          additions class-attribute instance-attribute

                          additions: int | None = None
                          

                          Lines added.

                          assignees class-attribute instance-attribute

                          assignees: list[User] = field(default_factory=list)
                          

                          Assigned reviewers.

                          author class-attribute instance-attribute

                          author: User | None = None
                          

                          PR creator.

                          changed_files class-attribute instance-attribute

                          changed_files: int | None = None
                          

                          Number of files changed.

                          closed_at class-attribute instance-attribute

                          closed_at: datetime | None = None
                          

                          Closing timestamp if closed.

                          comments class-attribute instance-attribute

                          comments: list[Comment] = field(default_factory=list)
                          

                          PR comments.

                          commits_count class-attribute instance-attribute

                          commits_count: int | None = None
                          

                          Number of commits.

                          created_at class-attribute instance-attribute

                          created_at: datetime | None = None
                          

                          Creation timestamp.

                          deletions class-attribute instance-attribute

                          deletions: int | None = None
                          

                          Lines deleted.

                          description class-attribute instance-attribute

                          description: str = ''
                          

                          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

                          mergeable: bool | None = None
                          

                          Whether PR can be merged.

                          merged_at class-attribute instance-attribute

                          merged_at: datetime | None = None
                          

                          Merge timestamp if merged.

                          merged_by class-attribute instance-attribute

                          merged_by: User | None = None
                          

                          User who merged the PR.

                          number instance-attribute

                          number: int
                          

                          Pull request number.

                          review_comments_count class-attribute instance-attribute

                          review_comments_count: int | None = None
                          

                          Number of review comments.

                          source_branch instance-attribute

                          source_branch: str
                          

                          Branch containing the changes.

                          state class-attribute instance-attribute

                          state: str | None = None
                          

                          Current state (open/closed/merged).

                          target_branch instance-attribute

                          target_branch: str
                          

                          Branch to merge into.

                          title instance-attribute

                          title: str
                          

                          Title of the pull request.

                          updated_at class-attribute instance-attribute

                          updated_at: datetime | None = None
                          

                          Last update timestamp.

                          url class-attribute instance-attribute

                          url: str | None = None
                          

                          URL to the PR.

                          Release dataclass

                          Model representing a repository release.

                          Source code in src/githarbor/core/models.py
                          @dataclass
                          class Release:
                              """Model representing a repository release."""
                          
                              tag_name: str
                              """Tag name for the release."""
                              name: str
                              """Name/title of the release."""
                              description: str = ""
                              """Description/body of the release."""
                              created_at: datetime | None = None
                              """Date and time when the release was created."""
                              published_at: datetime | None = None
                              """Date and time when the release was published."""
                              draft: bool = False
                              """Whether this is a draft release."""
                              prerelease: bool = False
                              """Whether this is a pre-release."""
                              author: User | None = None
                              """User who created the release."""
                              assets: list[Asset] = field(default_factory=list)
                              """List of assets attached to the release."""
                              url: str | None = None
                              """URL to view the release."""
                              target_commitish: str | None = None
                              """The branch/tag/commit the release targets."""
                              download_count: int = 0
                              """Total downloads."""
                          

                          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

                          created_at: datetime | None = None
                          

                          Date and time when the release was created.

                          description class-attribute instance-attribute

                          description: str = ''
                          

                          Description/body of the release.

                          download_count class-attribute instance-attribute

                          download_count: int = 0
                          

                          Total downloads.

                          draft class-attribute instance-attribute

                          draft: bool = False
                          

                          Whether this is a draft release.

                          name instance-attribute

                          name: str
                          

                          Name/title of the release.

                          prerelease class-attribute instance-attribute

                          prerelease: bool = False
                          

                          Whether this is a pre-release.

                          published_at class-attribute instance-attribute

                          published_at: datetime | None = None
                          

                          Date and time when the release was published.

                          tag_name instance-attribute

                          tag_name: str
                          

                          Tag name for the release.

                          target_commitish class-attribute instance-attribute

                          target_commitish: str | None = None
                          

                          The branch/tag/commit the release targets.

                          url class-attribute instance-attribute

                          url: str | None = None
                          

                          URL to view the release.

                          Tag dataclass

                          Model representing a repository tag.

                          Source code in src/githarbor/core/models.py
                          @dataclass
                          class Tag:
                              """Model representing a repository tag."""
                          
                              name: str
                              """Name of the tag."""
                              sha: str
                              """SHA hash of the commit this tag points to."""
                              message: str | None = None
                              """Tag message if provided."""
                              created_at: datetime | None = None
                              """Date and time when the tag was created."""
                              author: User | None = None
                              """User who created the tag."""
                              url: str | None = None
                              """URL to view the tag."""
                              verified: bool = False
                              """Whether the tag signature is verified."""
                          

                          author class-attribute instance-attribute

                          author: User | None = None
                          

                          User who created the tag.

                          created_at class-attribute instance-attribute

                          created_at: datetime | None = None
                          

                          Date and time when the tag was created.

                          message class-attribute instance-attribute

                          message: str | None = None
                          

                          Tag message if provided.

                          name instance-attribute

                          name: str
                          

                          Name of the tag.

                          sha instance-attribute

                          sha: str
                          

                          SHA hash of the commit this tag points to.

                          url class-attribute instance-attribute

                          url: str | None = None
                          

                          URL to view the tag.

                          verified class-attribute instance-attribute

                          verified: bool = False
                          

                          Whether the tag signature is verified.

                          User dataclass

                          User or organization account on a Git hosting platform.

                          Source code in src/githarbor/core/models.py
                          @dataclass
                          class User:
                              """User or organization account on a Git hosting platform."""
                          
                              username: str
                              """Username of the user."""
                              name: str | None = None
                              """Full name of the user."""
                              email: str | None = None
                              """Email address of the user."""
                              avatar_url: str | None = None
                              """URL of the user's avatar image."""
                              created_at: datetime | None = None
                              """Date and time when the user account was created."""
                              bio: str | None = None
                              """Biography/description of the user."""
                              location: str | None = None
                              """Geographic location of the user."""
                              company: str | None = None
                              """Company/organization the user belongs to."""
                              state: str | None = None
                              """State of the user (active / inactive)."""
                              locked: bool | None = None
                              """Whether user is locked."""
                              followers: int | None = None
                              """Number of followers."""
                              following: int | None = None
                              """Number of users being followed."""
                              public_repos: int | None = None
                              """Number of public repositories."""
                              url: str | None = None
                              """URL to user's profile."""
                              blog: str | None = None
                              """Personal blog of this user"""
                              twitter_username: str | None = None
                              """X / Twitter username of this user"""
                              hireable: bool | None = None
                              """Whether user is available for hiring"""
                              gravatar_id: str | None = None
                              """Gravatar id for this user."""
                              is_admin: bool | None = None
                              """Whether the user has admin privileges."""
                              last_activity_on: datetime | None = None
                              """Date of last activity."""
                              linkedin: str | None = None
                              """LinkedIn username."""
                              skype: str | None = None
                              """Skype username."""
                          

                          avatar_url class-attribute instance-attribute

                          avatar_url: str | None = None
                          

                          URL of the user's avatar image.

                          bio class-attribute instance-attribute

                          bio: str | None = None
                          

                          Biography/description of the user.

                          blog class-attribute instance-attribute

                          blog: str | None = None
                          

                          Personal blog of this user

                          company class-attribute instance-attribute

                          company: str | None = None
                          

                          Company/organization the user belongs to.

                          created_at class-attribute instance-attribute

                          created_at: datetime | None = None
                          

                          Date and time when the user account was created.

                          email class-attribute instance-attribute

                          email: str | None = None
                          

                          Email address of the user.

                          followers class-attribute instance-attribute

                          followers: int | None = None
                          

                          Number of followers.

                          following class-attribute instance-attribute

                          following: int | None = None
                          

                          Number of users being followed.

                          gravatar_id class-attribute instance-attribute

                          gravatar_id: str | None = None
                          

                          Gravatar id for this user.

                          hireable class-attribute instance-attribute

                          hireable: bool | None = None
                          

                          Whether user is available for hiring

                          is_admin class-attribute instance-attribute

                          is_admin: bool | None = None
                          

                          Whether the user has admin privileges.

                          last_activity_on class-attribute instance-attribute

                          last_activity_on: datetime | None = None
                          

                          Date of last activity.

                          linkedin class-attribute instance-attribute

                          linkedin: str | None = None
                          

                          LinkedIn username.

                          location class-attribute instance-attribute

                          location: str | None = None
                          

                          Geographic location of the user.

                          locked class-attribute instance-attribute

                          locked: bool | None = None
                          

                          Whether user is locked.

                          name class-attribute instance-attribute

                          name: str | None = None
                          

                          Full name of the user.

                          public_repos class-attribute instance-attribute

                          public_repos: int | None = None
                          

                          Number of public repositories.

                          skype class-attribute instance-attribute

                          skype: str | None = None
                          

                          Skype username.

                          state class-attribute instance-attribute

                          state: str | None = None
                          

                          State of the user (active / inactive).

                          twitter_username class-attribute instance-attribute

                          twitter_username: str | None = None
                          

                          X / Twitter username of this user

                          url class-attribute instance-attribute

                          url: str | None = None
                          

                          URL to user's profile.

                          username instance-attribute

                          username: str
                          

                          Username of the user.

                          Workflow dataclass

                          Source code in src/githarbor/core/models.py
                          @dataclass
                          class Workflow:
                              id: str
                              """Unique identifier for the workflow."""
                              name: str
                              """Name of the workflow."""
                              path: str
                              """Path to the workflow file in the repository."""
                              state: str
                              """State of the workflow."""
                              created_at: datetime | None = None
                              """Date and time when the workflow was created."""
                              updated_at: datetime | None = None
                              """Date and time when the workflow was last updated."""
                              description: str = ""
                              """Description of the workflow."""
                              triggers: list[str] = field(default_factory=list)
                              """List of triggers that can start the workflow."""
                              disabled: bool = False
                              """Indicates if the workflow is disabled."""
                              last_run_at: datetime | None = None
                              """Date and time when the workflow was last run."""
                              badge_url: str | None = None
                              """URL to the badge image for the workflow."""
                              definition: str | None = None
                              """Content of the workflow definition file."""
                              runs_count: int = 0
                              """Total number of runs."""
                              success_count: int = 0
                              """Successful runs count."""
                          

                          badge_url class-attribute instance-attribute

                          badge_url: str | None = None
                          

                          URL to the badge image for the workflow.

                          created_at class-attribute instance-attribute

                          created_at: datetime | None = None
                          

                          Date and time when the workflow was created.

                          definition class-attribute instance-attribute

                          definition: str | None = None
                          

                          Content of the workflow definition file.

                          description class-attribute instance-attribute

                          description: str = ''
                          

                          Description of the workflow.

                          disabled class-attribute instance-attribute

                          disabled: bool = False
                          

                          Indicates if the workflow is disabled.

                          id instance-attribute

                          id: str
                          

                          Unique identifier for the workflow.

                          last_run_at class-attribute instance-attribute

                          last_run_at: datetime | None = None
                          

                          Date and time when the workflow was last run.

                          name instance-attribute

                          name: str
                          

                          Name of the workflow.

                          path instance-attribute

                          path: str
                          

                          Path to the workflow file in the repository.

                          runs_count class-attribute instance-attribute

                          runs_count: int = 0
                          

                          Total number of runs.

                          state instance-attribute

                          state: str
                          

                          State of the workflow.

                          success_count class-attribute instance-attribute

                          success_count: int = 0
                          

                          Successful runs count.

                          triggers class-attribute instance-attribute

                          triggers: list[str] = field(default_factory=list)
                          

                          List of triggers that can start the workflow.

                          updated_at class-attribute instance-attribute

                          updated_at: datetime | None = None
                          

                          Date and time when the workflow was last updated.

                          WorkflowRun dataclass

                          Source code in src/githarbor/core/models.py
                          @dataclass
                          class WorkflowRun:
                              id: str
                              """Unique identifier for the workflow run."""
                              name: str
                              """Name of the workflow run."""
                              workflow_id: str
                              """ID of the parent workflow."""
                              status: str
                              """Current status of the workflow run."""
                              conclusion: str | None
                              """Final conclusion of the workflow run."""
                              branch: str | None = None
                              """Branch the workflow was run on."""
                              commit_sha: str | None = None
                              """SHA of the commit that triggered the workflow."""
                              url: str | None = None
                              """URL to view the workflow run."""
                              created_at: datetime | None = None
                              """Date and time when the workflow run was created."""
                              updated_at: datetime | None = None
                              """Date and time when the workflow run was last updated."""
                              started_at: datetime | None = None
                              """Date and time when the workflow run started."""
                              completed_at: datetime | None = None
                              """Date and time when the workflow run completed."""
                              run_number: int | None = None
                              """Sequential run number."""
                              jobs_count: int | None = None
                              """Total jobs count."""
                              logs_url: str | None = None
                              """Logs URL."""
                          

                          branch class-attribute instance-attribute

                          branch: str | None = None
                          

                          Branch the workflow was run on.

                          commit_sha class-attribute instance-attribute

                          commit_sha: str | None = None
                          

                          SHA of the commit that triggered the workflow.

                          completed_at class-attribute instance-attribute

                          completed_at: datetime | None = None
                          

                          Date and time when the workflow run completed.

                          conclusion instance-attribute

                          conclusion: str | None
                          

                          Final conclusion of the workflow run.

                          created_at class-attribute instance-attribute

                          created_at: datetime | None = None
                          

                          Date and time when the workflow run was created.

                          id instance-attribute

                          id: str
                          

                          Unique identifier for the workflow run.

                          jobs_count class-attribute instance-attribute

                          jobs_count: int | None = None
                          

                          Total jobs count.

                          logs_url class-attribute instance-attribute

                          logs_url: str | None = None
                          

                          Logs URL.

                          name instance-attribute

                          name: str
                          

                          Name of the workflow run.

                          run_number class-attribute instance-attribute

                          run_number: int | None = None
                          

                          Sequential run number.

                          started_at class-attribute instance-attribute

                          started_at: datetime | None = None
                          

                          Date and time when the workflow run started.

                          status instance-attribute

                          status: str
                          

                          Current status of the workflow run.

                          updated_at class-attribute instance-attribute

                          updated_at: datetime | None = None
                          

                          Date and time when the workflow run was last updated.

                          url class-attribute instance-attribute

                          url: str | None = None
                          

                          URL to view the workflow run.

                          workflow_id instance-attribute

                          workflow_id: str
                          

                          ID of the parent workflow.