Grapify the commit status API
What does this MR do?
Add the Grape-DSL to the commit status API.
What are the relevant issue numbers?
Related to #22928 (moved)
Merge request reports
Activity
Mentioned in issue #22928 (moved)
14 # ref (optional) - The ref 15 # stage (optional) - The stage 16 # name (optional) - The name 17 # all (optional) - Show all statuses, default: false 18 # Examples: 19 # GET /projects/:id/repository/commits/:sha/statuses 9 desc "Get a commit's statuses" do 10 success Entities::CommitStatus 11 end 12 params do 13 requires :id, type: String, desc: 'The ID of a project' 14 requires :sha, type: String, desc: 'The commit hash' 15 optional :ref, type: String, desc: 'The ref' 16 optional :stage, type: String, desc: 'The stage' 17 optional :name, type: String, desc: 'The name' 18 optional :all, type: String, desc: ' how all statuses, default: false' We can change that in 9.0. Right now it uses to_boolean to convert the string to boolean. However, this supports other values than booleans as well.
- Resolved by username-removed-2900
- Resolved by username-removed-2900
Milestone changed to %8.14
Reassigned to @razer6
Reassigned to @rymai
@rymai Thanks for the review. I updated the MR.
Thanks @razer6!
Enabled an automatic merge when the build for c7282f89 succeeds
Mentioned in commit ba2d5b16
@razer6 It looks like specs are broken on Ruby 2.1 due to this MR... See https://gitlab.com/gitlab-org/gitlab-ce/builds/5277116.
@rymai I'll fix them in the evening.
@razer6 I found the issue, I will submit a MR. ;)
Mentioned in issue #23590 (closed)