From a23c45e4b058496e2a0d444f3b145eb6494d4798 Mon Sep 17 00:00:00 2001 From: knucklessg1 Date: Thu, 30 May 2024 09:08:54 -0500 Subject: [PATCH] Added error handling field. --- gitlab_api/gitlab_models.py | 4 ++++ test/test_gitlab_models.py | 1 + 2 files changed, 5 insertions(+) diff --git a/gitlab_api/gitlab_models.py b/gitlab_api/gitlab_models.py index 0195cb5..9b2e351 100644 --- a/gitlab_api/gitlab_models.py +++ b/gitlab_api/gitlab_models.py @@ -3596,6 +3596,7 @@ class Pipeline(BaseModel): detailed_status: Optional[DetailedStatus] = Field( default=None, description="The detailed status of the pipeline." ) + message: Optional[str] = Field(default=None, description="Any error messages") class Pipelines(BaseModel): @@ -3681,6 +3682,7 @@ class Package(BaseModel): file_sha256: Optional[str] = Field( default=None, description="SHA-256 checksum of the package file" ) + message: Optional[str] = Field(default=None, description="Any error messages") class Packages(BaseModel): @@ -4101,6 +4103,7 @@ class Project(BaseModel): forked_from_project: Optional[Dict] = Field( default=None, description="The project from where this project was forked from." ) + message: Optional[str] = Field(default=None, description="Any error messages") mr_default_target_self: Optional[bool] = Field( default=None, description="Merge Request default target self.", @@ -4576,6 +4579,7 @@ class Group(BaseModel): created_at: Optional[str] = Field( default=None, description="Creation timestamp of the group" ) + message: Optional[str] = Field(default=None, description="Any error messages") statistics: Optional[Statistics] = Field( default=None, description="Statistics of the group" ) diff --git a/test/test_gitlab_models.py b/test/test_gitlab_models.py index fde9445..179350d 100644 --- a/test/test_gitlab_models.py +++ b/test/test_gitlab_models.py @@ -268,6 +268,7 @@ def test_project_response_1(): "allow_pipeline_trigger_approve_deployment": True, "mr_default_target_self": True, "forked_from_project": {}, + "message": "failure", "container_expiration_policy": { "cadence": "1month", "enabled": True,