Skip to content

Commit 1350209

Browse files
authored
Merge pull request #2 from lyda/services
Add Services addition from lyda
2 parents 342e944 + 2d8c89b commit 1350209

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

gitlab3/_api_definition.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,25 @@ def wrapped(self, branch):
198198
except AttributeError:
199199
pass
200200
return wrapped
201+
class SetGitlabCIAction(ExtraActionDefinition):
202+
url = '/services/gitlab-ci'
203+
method = _HTTP_PUT
204+
required_params = [
205+
'token',
206+
'project_url'
207+
]
208+
class DeactivateGitlabCIAction(ExtraActionDefinition):
209+
url = '/services/gitlab-ci'
210+
method = _HTTP_DELETE
201211

202212
extra_actions = [
203213
ForkFromAction,
204214
DeleteForkAction,
205215
GetBlobAction,
206216
ProtectBranchAction,
207217
UnprotectBranchAction,
218+
SetGitlabCIAction,
219+
DeactivateGitlabCIAction,
208220
]
209221

210222
###

0 commit comments

Comments
 (0)