Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6e1342f

Browse files
nejchJohnVillalovos
authored andcommitted
chore(ci_lint): add create attributes
1 parent6491f1b commit6e1342f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎gitlab/v4/objects/ci_lint.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
fromgitlab.baseimportRESTManager,RESTObject
99
fromgitlab.mixinsimportCreateMixin,GetWithoutIdMixin
10+
fromgitlab.typesimportRequiredOptional
1011

1112

1213
classProjectCiLint(RESTObject):
@@ -17,6 +18,9 @@ class ProjectCiLintManager(GetWithoutIdMixin, CreateMixin, RESTManager):
1718
_path="/projects/{project_id}/ci/lint"
1819
_obj_cls=ProjectCiLint
1920
_from_parent_attrs= {"project_id":"id"}
21+
_create_attrs=RequiredOptional(
22+
required=("content",),optional=("dry_run","include_jobs","ref")
23+
)
2024

2125
defget(self,**kwargs:Any)->ProjectCiLint:
2226
returncast(ProjectCiLint,super().get(**kwargs))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp