Skip to content

Commit d81d698

Browse files
committed
Add a set_gitlab_ci method to Project instances.
Need to implement the delete method as well. Just seeing if this is the best way to do it. I've asked the gitlab guys if they'd accept pull reqs for additional services. If they do, I'll implement them here.
1 parent 9d12a0f commit d81d698

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

gitlab3/_api_definition.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,21 @@ 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+
]
201208

202209
extra_actions = [
203210
ForkFromAction,
204211
DeleteForkAction,
205212
GetBlobAction,
206213
ProtectBranchAction,
207214
UnprotectBranchAction,
215+
SetGitlabCIAction,
208216
]
209217

210218
###

0 commit comments

Comments
 (0)