Models¶
models
¶
Classes:
| Name | Description |
|---|---|
CommitInfo |
|
WorkflowRunInfo |
|
CommitInfo
dataclass
¶
Returned by:
-
Reference
-
Services
Git
gitget_last_commit -
Core
Models
modelsCommitInfofrom_string
-
Services
Git
Methods:
| Name | Description |
|---|---|
from_string |
"--pretty=format:%h;%an;%ae;%ad;%s" |
Attributes:
| Name | Type | Description |
|---|---|---|
age |
int
|
Returns the integer number of days since the commit date (truncates partial days). |
age
property
¶
age: int
Returns the integer number of days since the commit date (truncates partial days).
from_string
classmethod
¶
from_string(output: str, sep: str = ';') -> CommitInfo
"--pretty=format:%h;%an;%ae;%ad;%s" 1. sha 2. author name 3. author email 4. date (ISO 8601 format) 5. commit message
Source code in oops/core/models.py
WorkflowRunInfo
dataclass
¶
WorkflowRunInfo(actor: str, branch: str, conclusion: str, date: datetime, event: str, name: str, sha: str, status: str, url: str)
Returned by:
-
Reference
Services
GitHub
githubget_latest_workflow_run
Attributes:
| Name | Type | Description |
|---|---|---|
age |
int
|
Returns the integer number of days since the commit date (truncates partial days). |