GitHubCheckSuiteModel#
- pydantic model safir.github.models.GitHubCheckSuiteModel#
A Pydantic model for the
check_suite
field in acheck_suite
webhook (GitHubCheckSuiteEventModel
).- Parameters:
data (
Any
) –
Show JSON schema
{ "title": "GitHubCheckSuiteModel", "description": "A Pydantic model for the ``check_suite`` field in a ``check_suite``\nwebhook (`~safir.github.webhooks.GitHubCheckSuiteEventModel`).", "type": "object", "properties": { "id": { "title": "Id", "description": "Identifier for this check run.", "type": "string" }, "head_branch": { "title": "Head Branch", "description": "Name of the branch the changes are on.", "type": "string" }, "head_sha": { "title": "Head Sha", "description": "The SHA of the most recent commit for this check suite.", "type": "string" }, "url": { "title": "Url", "description": "GitHub API URL for the check suite resource.", "minLength": 1, "maxLength": 2083, "format": "uri", "type": "string" }, "status": { "description": "The status of the check suite.", "allOf": [ { "$ref": "#/definitions/GitHubCheckSuiteStatus" } ] }, "conclusion": { "description": "The conclusion of the check suite.", "allOf": [ { "$ref": "#/definitions/GitHubCheckSuiteConclusion" } ] } }, "required": [ "id", "head_branch", "head_sha", "url", "status" ], "definitions": { "GitHubCheckSuiteStatus": { "title": "GitHubCheckSuiteStatus", "description": "The status of a GitHub check suite.", "enum": [ "queued", "in_progress", "completed" ], "type": "string" }, "GitHubCheckSuiteConclusion": { "title": "GitHubCheckSuiteConclusion", "description": "The conclusion state of a GitHub check suite.", "enum": [ "success", "failure", "neutral", "cancelled", "timed_out", "action_required", "stale" ], "type": "string" } } }
- Fields:
-
field conclusion:
Optional
[GitHubCheckSuiteConclusion
] = None# The conclusion of the check suite.
-
field status:
GitHubCheckSuiteStatus
[Required]# The status of the check suite.
-
field url:
HttpUrl
[Required]# GitHub API URL for the check suite resource.
- Constraints:
minLength = 1
maxLength = 2083
format = uri