Skip to content

Commit

Permalink
Added error handling field.
Browse files Browse the repository at this point in the history
  • Loading branch information
Knucklessg1 committed May 30, 2024
1 parent aebeab5 commit a23c45e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gitlab_api/gitlab_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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.",
Expand Down Expand Up @@ -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"
)
Expand Down
1 change: 1 addition & 0 deletions test/test_gitlab_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a23c45e

Please sign in to comment.