Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
java-gitlab-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
沈俊林
java-gitlab-api
Commits
577572c7
Commit
577572c7
authored
Apr 16, 2017
by
Olga Maciaszek-Sharma
Committed by
Tim Olshansky
Apr 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the possibility of creating group projects. (#197)
parent
20d3c7db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
GitlabAPI.java
src/main/java/org/gitlab/api/GitlabAPI.java
+39
-0
No files found.
src/main/java/org/gitlab/api/GitlabAPI.java
View file @
577572c7
...
...
@@ -726,6 +726,45 @@ public class GitlabAPI {
return
createProject
(
name
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
,
null
);
}
/**
* Creates a group Project
*
* @param name The name of the project
* @param group The group for which the project should be crated
* @return The GitLab Project
* @throws IOException on gitlab api call error
*/
public
GitlabProject
createProjectForGroup
(
String
name
,
GitlabGroup
group
)
throws
IOException
{
return
createProjectForGroup
(
name
,
group
,
null
);
}
/**
* Creates a group Project
*
* @param name The name of the project
* @param group The group for which the project should be crated
* @param description The project description
* @return The GitLab Project
* @throws IOException on gitlab api call error
*/
public
GitlabProject
createProjectForGroup
(
String
name
,
GitlabGroup
group
,
String
description
)
throws
IOException
{
return
createProjectForGroup
(
name
,
group
,
description
,
null
);
}
/**
* Creates a group Project
*
* @param name The name of the project
* @param group The group for which the project should be crated
* @param description The project description
* @param visibilityLevel The project visibility level (private: 0, internal: 10, public: 20)
* @return The GitLab Project
* @throws IOException on gitlab api call error
*/
public
GitlabProject
createProjectForGroup
(
String
name
,
GitlabGroup
group
,
String
description
,
Integer
visibilityLevel
)
throws
IOException
{
return
createProject
(
name
,
group
.
getId
(),
description
,
null
,
null
,
null
,
null
,
null
,
null
,
visibilityLevel
,
null
);
}
/**
* Creates a Project
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment