Skip to content

Commit dd5f394

Browse files
committed
feat(api) adding missing ProjectPackageManager list filters
`package_version` was introduced in GitLab 16.6 See: https://docs.gitlab.com/api/packages/#for-a-project
1 parent f3c6678 commit dd5f394

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

gitlab/v4/objects/packages.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ class GroupPackageManager(ListMixin[GroupPackage]):
220220
"sort",
221221
"package_type",
222222
"package_name",
223+
"package_version",
224+
"include_versionless",
225+
"status",
223226
)
224227

225228

@@ -234,7 +237,15 @@ class ProjectPackageManager(
234237
_path = "/projects/{project_id}/packages"
235238
_obj_cls = ProjectPackage
236239
_from_parent_attrs = {"project_id": "id"}
237-
_list_filters = ("order_by", "sort", "package_type", "package_name")
240+
_list_filters = (
241+
"order_by",
242+
"sort",
243+
"package_type",
244+
"package_name",
245+
"package_version",
246+
"include_versionless",
247+
"status",
248+
)
238249

239250

240251
class ProjectPackageFile(ObjectDeleteMixin, RESTObject):

0 commit comments

Comments
 (0)