Proof of concept: recommend that user adds README, LICENSE, and .gitignore files
Created by: bbodenmiller
Would like to see the empty repo page recommend that the user add README, LICENSE, and .gitignore files.
What's needed to make this happen:
- GitLab needs to be able to init repo without someone pushing an inited repo (started at https://github.com/gitlabhq/gitlabhq/pull/7069 & https://github.com/gitlabhq/gitlab-shell/pull/153)
-
/new/master?file_name=README.mdneeds to open an editor to create a new file of the specified name -
Visiting
/new/master?file_name=README.mdin an empty repo should return the new file page rather than a 404 -
Selecting commit from
/new/master?file_name=README.mdwhen the repo is empty should init the repo and make the commit - Test haml code (I just threw this together without testing the links) and styling
Eventually it would be nice to have these key files created via the add project page. README could create a blank file with the project file and LICENSE & .gitignore could be dropdowns pulling info from http://choosealicense.com/ & https://github.com/github/gitignore.
