Handle error when create directory params are missing

What does this MR do and why?

Contributes to #474828 (closed)

Problem

Missing validation for branch_name and dir_name presence leads to 500 error.

Solution

Require branch_name, dir_name and commit_message fields to be present.

How to set up and validate locally

It's difficult to test locally, because frontend has validations to prevent empty values.

Merge request reports

Loading