diff options
author | Toon Claes <toon@gitlab.com> | 2019-02-28 19:57:34 +0100 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2019-02-28 19:57:34 +0100 |
commit | 62d7990b9bb30cf33ed87017c5c633d1cccc75c2 (patch) | |
tree | c3e1b69c58a412ba1c6f50a0337a23d9f9d6e1a4 /lib/api/submodules.rb | |
parent | f6453eca992a9c142268e78ac782cef98110d183 (diff) | |
download | gitlab-ce-tc-standard-gem.tar.gz |
Ran standardrb --fix on the whole codebasetc-standard-gem
Inspired by https://twitter.com/searls/status/1101137953743613952 I
decided to try https://github.com/testdouble/standard on our codebase.
It's opinionated, but at least it's a _standard_.
Diffstat (limited to 'lib/api/submodules.rb')
-rw-r--r-- | lib/api/submodules.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/api/submodules.rb b/lib/api/submodules.rb index 72d7d994102..a76c6a832db 100644 --- a/lib/api/submodules.rb +++ b/lib/api/submodules.rb @@ -10,23 +10,23 @@ module API submodule: attrs[:submodule], commit_sha: attrs[:commit_sha], branch_name: attrs[:branch], - commit_message: attrs[:commit_message] + commit_message: attrs[:commit_message], } end end params do - requires :id, type: String, desc: 'The project ID' + requires :id, type: String, desc: "The project ID" end resource :projects, requirements: Files::FILE_ENDPOINT_REQUIREMENTS do - desc 'Update existing submodule reference in repository' do + desc "Update existing submodule reference in repository" do success Entities::Commit end params do - requires :submodule, type: String, desc: 'Url encoded full path to submodule.' - requires :commit_sha, type: String, desc: 'Commit sha to update the submodule to.' - requires :branch, type: String, desc: 'Name of the branch to commit into.' - optional :commit_message, type: String, desc: 'Commit message. If no message is provided a default one will be set.' + requires :submodule, type: String, desc: "Url encoded full path to submodule." + requires :commit_sha, type: String, desc: "Commit sha to update the submodule to." + requires :branch, type: String, desc: "Name of the branch to commit into." + optional :commit_message, type: String, desc: "Commit message. If no message is provided a default one will be set." end put ":id/repository/submodules/:submodule", requirements: Files::FILE_ENDPOINT_REQUIREMENTS do authorize! :push_code, user_project |