diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2018-08-21 11:14:31 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2018-08-21 12:30:22 +0200 |
commit | 6dc4d1b52c3401c98b8796b38d3da5080ac9b3a7 (patch) | |
tree | 62fdf6c01c7aa71d6acfcdaf09f3fd4e991d0325 /lib/api | |
parent | ceaee58c491a4c027f0e81fae0ad345028e6795a (diff) | |
download | gitlab-ce-6dc4d1b52c3401c98b8796b38d3da5080ac9b3a7.tar.gz |
Extend to PUT request
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/files.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/files.rb b/lib/api/files.rb index 4b3280a98b4..ff4f75c12df 100644 --- a/lib/api/files.rb +++ b/lib/api/files.rb @@ -59,7 +59,7 @@ module API params :simple_file_params do requires :file_path, type: String, desc: 'The url encoded path to the file. Ex. lib%2Fclass%2Erb' requires :branch, type: String, desc: 'Name of the branch to commit into. To create a new branch, also provide `start_branch`.' - requires :commit_message, type: String, regexp: /^\S+$/, desc: 'Commit message' + requires :commit_message, type: String, allow_blank: false, desc: 'Commit message' optional :start_branch, type: String, desc: 'Name of the branch to start the new commit from' optional :author_email, type: String, desc: 'The email of the author' optional :author_name, type: String, desc: 'The name of the author' |