-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Project Template for Project Creation #7069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -0,0 +1,55 @@ | |||
class Admin::ProjectTemplatesController < Admin::ApplicationController |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use nested module/class definitions instead of compact style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment can be ignored
@@ -100,6 +100,8 @@ def verify_constant(modul, current, default) | |||
Settings.gitlab.default_projects_features['snippets'] = false if Settings.gitlab.default_projects_features['snippets'].nil? | |||
Settings.gitlab.default_projects_features['visibility_level'] = Settings.send(:verify_constant, Gitlab::VisibilityLevel, Settings.gitlab.default_projects_features['visibility_level'], Gitlab::VisibilityLevel::PRIVATE) | |||
Settings.gitlab['repository_downloads_path'] = File.absolute_path(Settings.gitlab['repository_downloads_path'] || 'tmp/repositories', Rails.root) | |||
Settings.gitlab['templates_path'] = File.join(File.absolute_path(Settings.gitlab['templates_path'] || Settings.gitlab['user_home'] + '/gitlab-templates'),'/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [158/80]
Space missing after comma.
@pixel-shock Thanks for your contribution but the same comment as in 6127 applies: Also see the contribution guidelines: We can always enhance it later but each MR has to be as small as possible. Please stick to the AMR conditions in http://feedback.gitlab.com/forums/176466-general/suggestions/3797854-create-empty-repo-on-project-creation for the first MR |
Hi, so the small "version" of this MR is this I think: 1.) simple checkbox at project creation ("init" [yes/no]) Is this correct? EDIT: Sorry for the large MR, but I thought I should do it as "feature complete" as possible to avoid much work for you 😄 |
@pixel-shock Yes, I check with @randx and that would be an awesome minimal size for the first MR. |
@pixel-shock And no problem about trying to make it feature complete, it is maybe counter intuitive but smaller steps make everything go faster. |
default_value_for :template_name_length, 100 | ||
default_value_for :template_description_length, 750 | ||
|
||
attr_accessor :template_name_length, :template_description_length |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@randx Since we currently use Rails4, maybe we should start using the strong params in new classes?
@pixel-shock I jumped true the code, and put some comments everywhere, but didn't realise that @dosire had already responded 💃 So if you're going to create a new MR, please ignore my comments :-) |
@jvanbaarsen thx for your quick email-reply 😉 THX for your comments and advices ... |
it works for gitlab 7? |
Hi, sorry, didn’t tested it yet … I’ve spend a lot of time at work at the moment, so I can’t test it in GL7 :( Cheers Am 25.06.2014 um 10:55 schrieb abargutu notifications@github.com:
|
could you sendme the link where i can see the definitly changes because it is a little confuse |
do you mean my changes in the LG code? scroll down and you can see all my changes. Am 25.06.2014 um 11:03 schrieb abargutu notifications@github.com:
|
yes thanks a lot!!!! |
oooooooooooooooooooooHHHHH |
@pixel-shock Is this PR ready for review? |
@jvanbaarsen Hi, in principle it is ready for review (functionality) but I have to fix some code-style issues first and I have to merge it into the 7.1 branch I think. |
Ok! Thanks for your reply! On 4 augustus 2014 at 11:38:49, Tino W. (notifications@github.com) wrote: @jvanbaarsen Hi, in principle it is ready for review (functionality) but I have to fix some code-style issues first and I have to merge it into the 7.1 branch I think. — |
Hi everyone, excuse my ignorance on how project updates work, but has this feature (create empty repo on project creation) been committed to the latest version of GitLab as I could really benifit? I'm running 7.2 of GitLab CE and do not see how to opt to create a empty repo on new project within the Web UI. |
@pixel-shock really hope you can get a very basic init repo functionality added soon. Need this for #7759. |
@pixel-shock If you don't have time to pursue this at the moment, do you mind if we close it? You can always resurrect when you have time. |
Oh man! is there other way then? (to create the git project with a readme or a project-template) |
This merge request has been closed because a request for more information has not been reacted to for more than 2 weeks. If you respond and conform to the merge request guidelines in our contributing guidelines we will reopen this merge request. |
Hi,
this is a new PR for this one: #6127
It's now possible to create project-template and create projects from these templates.
Hope you like it ...