Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8dc7f40

Browse files
nejchJohnVillalovos
authored andcommitted
chore(objects): remove non-existing trigger ownership method
1 parente851eed commit8dc7f40

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

‎gitlab/v4/objects/triggers.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
fromgitlabimportcli
2-
fromgitlabimportexceptionsasexc
31
fromgitlab.baseimportRequiredOptional,RESTManager,RESTObject
42
fromgitlab.mixinsimportCRUDMixin,ObjectDeleteMixin,SaveMixin
53

@@ -10,21 +8,7 @@
108

119

1210
classProjectTrigger(SaveMixin,ObjectDeleteMixin,RESTObject):
13-
@cli.register_custom_action("ProjectTrigger")
14-
@exc.on_http_error(exc.GitlabOwnershipError)
15-
deftake_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

3014
classProjectTriggerManager(CRUDMixin,RESTManager):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp