mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
Merge branch 'standalone_develop' into pm_project_develop
This commit is contained in:
@@ -65,8 +65,7 @@ class Projects::CreateService < ApplicationService
|
||||
{
|
||||
hidden: !repo_is_public,
|
||||
user_id: params[:user_id],
|
||||
identifier: params[:repository_name],
|
||||
auto_init: params[:auto_init]
|
||||
identifier: params[:repository_name]
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ class Repositories::CreateService < ApplicationService
|
||||
name: params[:identifier],
|
||||
private: params[:hidden],
|
||||
# readme: "ReadMe",
|
||||
auto_init: params[:auto_init],
|
||||
"auto_init": true,
|
||||
# "description": "string",
|
||||
# "gitignores": "string",
|
||||
# "issue_labels": "string",
|
||||
@@ -89,7 +89,7 @@ class Repositories::CreateService < ApplicationService
|
||||
license = project.license
|
||||
hash = hash.merge(license: license.name) if license
|
||||
hash = hash.merge(gitignores: ignore.name) if ignore
|
||||
hash = hash.merge(auto_init: true) if ignore && license
|
||||
hash = hash.merge(auto_init: true) if ignore || license
|
||||
hash
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user