summaryrefslogtreecommitdiff
path: root/gitlab/cli.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-03-22 20:08:04 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2016-03-22 20:08:04 +0100
commit571a382f0595ea7cfd5424b1e4f5009fcb531642 (patch)
treea5b2197c941c949140e66521ba0bc914fdc5c942 /gitlab/cli.py
parentf6a51d67c38c883775240d8c612d492bf023c2e4 (diff)
downloadgitlab-571a382f0595ea7cfd5424b1e4f5009fcb531642.tar.gz
MR: add support for closes_issues
Diffstat (limited to 'gitlab/cli.py')
-rw-r--r--gitlab/cli.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/gitlab/cli.py b/gitlab/cli.py
index efa2d76..cd64ada 100644
--- a/gitlab/cli.py
+++ b/gitlab/cli.py
@@ -42,6 +42,7 @@ EXTRA_ACTIONS = {
'filepath']},
'builds': {'required': ['id', 'project-id']}},
gitlab.ProjectMergeRequest: {
+ 'closes-issues': {'required': ['id', 'project-id']},
'cancel': {'required': ['id', 'project-id']},
'merge': {'required': ['id', 'project-id'],
'optional': ['merge-commit-message',
@@ -224,6 +225,14 @@ class GitlabCLI(object):
except Exception as e:
_die("Impossible to retry project build (%s)" % str(e))
+ def do_project_merge_request_closesissues(self, cls, gl, what, args):
+ try:
+ o = self.do_get(cls, gl, what, args)
+ return o.closes_issues()
+ except Exception as e:
+ _die("Impossible to list issues closed by merge request (%s)" %
+ str(e))
+
def do_project_merge_request_cancel(self, cls, gl, what, args):
try:
o = self.do_get(cls, gl, what, args)