|
44 | 44 | 'filepath']},
|
45 | 45 | 'builds': {'required': ['id', 'project-id']}},
|
46 | 46 | gitlab.ProjectIssue: {'subscribe': {'required': ['id', 'project-id']},
|
47 |
| - 'unsubscribe': {'required': ['id', 'project-id']}}, |
| 47 | + 'unsubscribe': {'required': ['id', 'project-id']}, |
| 48 | + 'move': {'required': ['id', 'project-id', |
| 49 | + 'to-project-id']}}, |
48 | 50 | gitlab.ProjectMergeRequest: {
|
49 | 51 | 'closes-issues': {'required': ['id', 'project-id']},
|
50 | 52 | 'cancel': {'required': ['id', 'project-id']},
|
@@ -280,6 +282,13 @@ def do_project_issue_unsubscribe(self, cls, gl, what, args):
|
280 | 282 | except Exception as e:
|
281 | 283 | _die("Impossible to subscribe to issue (%s)" % str(e))
|
282 | 284 |
|
| 285 | + def do_project_issue_move(self, cls, gl, what, args): |
| 286 | + try: |
| 287 | + o = self.do_get(cls, gl, what, args) |
| 288 | + o.move(args['to_project_id']) |
| 289 | + except Exception as e: |
| 290 | + _die("Impossible to move issue (%s)" % str(e)) |
| 291 | + |
283 | 292 | def do_project_merge_request_closesissues(self, cls, gl, what, args):
|
284 | 293 | try:
|
285 | 294 | o = self.do_get(cls, gl, what, args)
|
|
0 commit comments