diff options
author | Ludwig Weiss <ludwig.weiss@umusic.com> | 2020-05-14 10:35:49 +0200 |
---|---|---|
committer | John Villalovos <john@sodarock.com> | 2021-05-30 15:03:12 -0700 |
commit | fbbc0d400015d7366952a66e4401215adff709f0 (patch) | |
tree | 3064ccdda9265b9388ab9af0c770c3c7d7a47332 /gitlab/v4/objects/deployments.py | |
parent | 149953dc32c28fe413c9f3a0066575caeab12bc8 (diff) | |
download | gitlab-fbbc0d400015d7366952a66e4401215adff709f0.tar.gz |
feat(api): add deployment mergerequests interface
Diffstat (limited to 'gitlab/v4/objects/deployments.py')
-rw-r--r-- | gitlab/v4/objects/deployments.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gitlab/v4/objects/deployments.py b/gitlab/v4/objects/deployments.py index dea8caf..8cf0fd9 100644 --- a/gitlab/v4/objects/deployments.py +++ b/gitlab/v4/objects/deployments.py @@ -1,6 +1,8 @@ from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import CreateMixin, RetrieveMixin, SaveMixin, UpdateMixin +from .merge_requests import ProjectDeploymentMergeRequestManager # noqa: F401 + __all__ = [ "ProjectDeployment", "ProjectDeploymentManager", @@ -8,14 +10,21 @@ __all__ = [ class ProjectDeployment(SaveMixin, RESTObject): - pass + _managers = (("mergerequests", "ProjectDeploymentMergeRequestManager"),) class ProjectDeploymentManager(RetrieveMixin, CreateMixin, UpdateMixin, RESTManager): _path = "/projects/%(project_id)s/deployments" _obj_cls = ProjectDeployment _from_parent_attrs = {"project_id": "id"} - _list_filters = ("order_by", "sort") + _list_filters = ( + "order_by", + "sort", + "updated_after", + "updated_before", + "environment", + "status", + ) _create_attrs = RequiredOptional( required=("sha", "ref", "tag", "status", "environment") ) |