| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6491f1b commit 6e1342f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,7 @@ | |||
| 7 | 7 | ||
| 8 | 8 | from gitlab.base import RESTManager, RESTObject | |
| 9 | 9 | from gitlab.mixins import CreateMixin, GetWithoutIdMixin | |
| 10 | + from gitlab.types import RequiredOptional | ||
| 10 | 11 | ||
| 11 | 12 | ||
| 12 | 13 | class ProjectCiLint(RESTObject): | |
@@ -17,6 +18,9 @@ class ProjectCiLintManager(GetWithoutIdMixin, CreateMixin, RESTManager): | |||
| 17 | 18 | _path = "/projects/{project_id}/ci/lint" | |
| 18 | 19 | _obj_cls = ProjectCiLint | |
| 19 | 20 | _from_parent_attrs = {"project_id": "id"} | |
| 21 | + _create_attrs = RequiredOptional( | ||
| 22 | + required=("content",), optional=("dry_run", "include_jobs", "ref") | ||
| 23 | + ) | ||
| 20 | 24 | ||
| 21 | 25 | def get(self, **kwargs: Any) -> ProjectCiLint: | |
| 22 | 26 | return cast(ProjectCiLint, super().get(**kwargs)) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments