Skip to content

Commit ae92213

Browse files
Update bitbucket schema (#613)
1 parent 48dc310 commit ae92213

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/usethis/_integrations/ci/bitbucket/schema.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: schema.json
3-
# timestamp: 2025-03-26T14:07:35+00:00
3+
# timestamp: 2025-05-08T09:34:57+00:00
44
# using the command:
55
# datamodel-codegen --input tests\usethis\_integrations\ci\bitbucket\schema.json --input-file-type jsonschema --output src\usethis\_integrations\ci\bitbucket\schema.py --enum-field-as-literal all --field-constraints --use-double-quotes --use-union-operator --use-standard-collections --use-default-kwarg --output-model-type pydantic_v2.BaseModel --target-python-version 3.10
66
# ruff: noqa: ERA001
@@ -241,17 +241,29 @@ class RunsOnItem(RootModel[str]):
241241

242242

243243
class ArtifactsUpload(BaseModel):
244+
capture_on: Literal["success", "failed", "always"] | None = Field(
245+
default=None,
246+
alias="capture-on",
247+
description="The capture on field for the artifact.",
248+
title="Artifact Capture On",
249+
)
244250
depth: int | None = Field(
245251
default=None,
246252
description="The depth to search for the artifact files.",
247253
ge=1,
248254
title="Artifact Depth",
249255
)
256+
ignore_paths: list[str] | None = Field(
257+
default=None,
258+
alias="ignore-paths",
259+
description="The ignore paths for the artifact.",
260+
title="Artifact Ignore Paths",
261+
)
250262
name: str = Field(
251263
..., description="The name of the artifact.", title="Artifact Name"
252264
)
253265
paths: ArtifactsPaths
254-
type: Literal["shared"] | None = Field(
266+
type: Literal["shared", "unshared", "test-reports"] | None = Field(
255267
default="shared", description="The type of the artifact.", title="Artifact Type"
256268
)
257269

0 commit comments

Comments
 (0)