Skip to content

Proof of concept: recommend that user adds README, LICENSE, and .gitignore files

Matthias Käppler requested to merge github/fork/bbodenmiller/patch-5 into master

Created by: bbodenmiller

Would like to see the empty repo page recommend that the user add README, LICENSE, and .gitignore files.

image

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.md needs to open an editor to create a new file of the specified name
  • Visiting /new/master?file_name=README.md in an empty repo should return the new file page rather than a 404
  • Selecting commit from /new/master?file_name=README.md when 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.

Merge request reports

Loading