summaryrefslogtreecommitdiff
path: root/lib/api/commit_statuses.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-10-12 12:16:00 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-10-12 12:42:27 +0200
commit0aefeeb882b40d740b80f15ac6610a88a340d30b (patch)
tree5dcf22ccfd0b7222529f6d74b3e05c2dc2fb2493 /lib/api/commit_statuses.rb
parent7ef156a24292f98d89bc424cc245f00548831863 (diff)
downloadgitlab-ce-0aefeeb882b40d740b80f15ac6610a88a340d30b.tar.gz
Add Commit Status documentation
Diffstat (limited to 'lib/api/commit_statuses.rb')
-rw-r--r--lib/api/commit_statuses.rb20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/api/commit_statuses.rb b/lib/api/commit_statuses.rb
index c478b3dc245..ca750320e40 100644
--- a/lib/api/commit_statuses.rb
+++ b/lib/api/commit_statuses.rb
@@ -56,16 +56,16 @@ module API
status.update(attrs)
case params[:state].to_s
- when 'running'
- status.run
- when 'success'
- status.success
- when 'failed'
- status.drop
- when 'canceled'
- status.cancel
- else
- status.status = params[:state].to_s
+ when 'running'
+ status.run
+ when 'success'
+ status.success
+ when 'failed'
+ status.drop
+ when 'canceled'
+ status.cancel
+ else
+ status.status = params[:state].to_s
end
if status.save