File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed
Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change 1- from gitlab import cli
2- from gitlab import exceptions as exc
31from gitlab .base import RequiredOptional , RESTManager , RESTObject
42from gitlab .mixins import CRUDMixin , ObjectDeleteMixin , SaveMixin
53
108
119
1210class ProjectTrigger (SaveMixin , ObjectDeleteMixin , RESTObject ):
13- @cli .register_custom_action ("ProjectTrigger" )
14- @exc .on_http_error (exc .GitlabOwnershipError )
15- def take_ownership (self , ** kwargs ):
16- """Update the owner of a trigger.
17-
18- Args:
19- **kwargs: Extra options to send to the server (e.g. sudo)
20-
21- Raises:
22- GitlabAuthenticationError: If authentication is not correct
23- GitlabOwnershipError: If the request failed
24- """
25- path = "%s/%s/take_ownership" % (self .manager .path , self .get_id ())
26- server_data = self .manager .gitlab .http_post (path , ** kwargs )
27- self ._update_attrs (server_data )
11+ pass
2812
2913
3014class ProjectTriggerManager (CRUDMixin , RESTManager ):
You can’t perform that action at this time.
0 commit comments