Files creation view
Problem to solve
As a user, I want to be able to create a new text file for a project. This utility must let create files with and without file extensions, nevertheless if user wants to type it then the name field is the right place, user must provide name, and branch info, the branch could be new or existent but mandatory, so let the user decide through a checkbox whether he wants a new one or not.
The content of the file is optional since user can decide to create .gitkeep files for example, which are usually empty.
Proposal for Technical Solution
The commits API has to be used for this purpose, the documentation will be below. After entering the data, the JSON api request must look like:
{
"branch": "master",
"commit_message": "some commit message",
"actions": [
{
"action": "create",
"file_path": "foo/bar",
"content": "some content"
}
]
}
The API is implemented already, so the only thing to do is the view.
For the UI, we can copy the Gitlab design

Permissions and Security
Only authenticated users can use this utility.
Documentation
https://docs.gitlab.com/ee/api/commits.html#create-a-commit-with-multiple-files-and-actions