@@ -26,10 +26,9 @@ Then we need to authenticate to our Gitlab instance. There is 2 ways of doing th
26
26
Authenticating via user/password
27
27
==================================
28
28
29
- First create the instance passing the gitlab server as parameter, You can also pass the gitlab backend version as there are some differences
30
- between 5 and 6 (One example, when creating projects you cna make them public on gitlab 6, gitlab 5 doesn't have that option) default version is 5::
29
+ First create the instance passing the gitlab server as parameter::
31
30
32
- git = gitlab.Gitlab("our_gitlab_host","5" )
31
+ git = gitlab.Gitlab("our_gitlab_host")
33
32
34
33
Then call the login() method::
35
34
@@ -112,13 +111,15 @@ Get project events::
112
111
git.getProjectEvents(project_id)
113
112
114
113
Create a new project
114
+
115
115
If you are using version 6 you can pass an extra "public" argument which makes the project public.
116
- Please note that Gitlab 5 doesn't have this option and you have to explicity declare your version of gitlab (See the start of the docs to find how)::
116
+
117
+ Please note that Gitlab 5 doesn't have this option and using it will probably end in a failure while creating the project::
117
118
118
119
git.createProject(name, description="", default_branch="",
119
- issues_enabled="" , wall_enabled="" ,
120
- merge_requests_enabled="" , wiki_enabled="" ,
121
- snippets_enabled="" , public="" )
120
+ issues_enabled=0 , wall_enabled=0 ,
121
+ merge_requests_enabled=0 , wiki_enabled=0 ,
122
+ snippets_enabled=0 , public=0 )
122
123
123
124
List project members::
124
125
0 commit comments