Skip to content

Commit f84e4c6

Browse files
committed
Fix issue #22 allowing projects to be edited and updating the arguments list
1 parent 3df74fc commit f84e4c6

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

gitlab3/_api_definition.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,20 +136,32 @@ class Note(APIDefinition):
136136

137137
class Project(APIDefinition):
138138
url = '/projects/:id'
139-
actions = [ _LIST, _GET, _ADD, _DELETE ]
139+
actions = [_LIST, _GET, _ADD, _EDIT, _DELETE]
140140
required_params = [
141141
'name',
142142
]
143143
optional_params = [
144-
'namespace_id',
145-
'description',
144+
'path',
145+
'namespace_id', # Create only
146146
'default_branch',
147+
'description',
147148
'issues_enabled',
148-
'wall_enabled',
149149
'merge_requests_enabled',
150+
'builds_enabled',
150151
'wiki_enabled',
151152
'snippets_enabled',
153+
'container_registry_enabled',
154+
'shared_runners_enabled',
152155
'public',
156+
'visibility_level',
157+
'import_url',
158+
'public_builds',
159+
'only_allow_merge_if_build_succeeds',
160+
'only_allow_merge_if_all_discussions_are_resolved',
161+
'lfs_enabled',
162+
'request_access_enabled',
163+
'repository_storage',
164+
'approvals_before_merge',
153165
]
154166

155167
####

0 commit comments

Comments
 (0)