diff options
author | Raimund Hook <raimund.hook@exfo.com> | 2021-10-27 11:52:37 +0100 |
---|---|---|
committer | Raimund Hook <raimund.hook@exfo.com> | 2021-10-27 11:52:37 +0100 |
commit | f0685209f88d1199873c1f27d27f478706908fd3 (patch) | |
tree | 5006e9b5a2b108dc86aa47190ad3f1a596ec6c08 /gitlab | |
parent | 0b53c0a260ab2ec2c5ddb12ca08bfd21a24f7a69 (diff) | |
download | gitlab-f0685209f88d1199873c1f27d27f478706908fd3.tar.gz |
feat(api): add project milestone promotion
Adds promotion to Project Milestones
Signed-off-by: Raimund Hook <raimund.hook@exfo.com>
Diffstat (limited to 'gitlab')
-rw-r--r-- | gitlab/v4/objects/milestones.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gitlab/v4/objects/milestones.py b/gitlab/v4/objects/milestones.py index 0a53e1b..0d6962d 100644 --- a/gitlab/v4/objects/milestones.py +++ b/gitlab/v4/objects/milestones.py @@ -2,7 +2,7 @@ from gitlab import cli from gitlab import exceptions as exc from gitlab import types from gitlab.base import RequiredOptional, RESTManager, RESTObject, RESTObjectList -from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, SaveMixin +from gitlab.mixins import CRUDMixin, ObjectDeleteMixin, PromoteMixin, SaveMixin from .issues import GroupIssue, GroupIssueManager, ProjectIssue, ProjectIssueManager from .merge_requests import ( @@ -90,8 +90,9 @@ class GroupMilestoneManager(CRUDMixin, RESTManager): _types = {"iids": types.ListAttribute} -class ProjectMilestone(SaveMixin, ObjectDeleteMixin, RESTObject): +class ProjectMilestone(PromoteMixin, SaveMixin, ObjectDeleteMixin, RESTObject): _short_print_attr = "title" + _update_uses_post = True @cli.register_custom_action("ProjectMilestone") @exc.on_http_error(exc.GitlabListError) |