summaryrefslogtreecommitdiff
path: root/app/models/merge_request.rb
diff options
context:
space:
mode:
authorAbhi Rao <abhi.rao@onit.com>2016-03-28 18:41:00 -0500
committerAbhi Rao <abhi.rao@onit.com>2016-03-28 22:11:44 -0500
commit762d6ab4fd315d9d692d9df814cef206b39b9fdd (patch)
treee720182b967f657a5e1ebcc0541c6b228db4fbbb /app/models/merge_request.rb
parent3385696bcecd5bf9a68cd4130b8a79a0b3557c34 (diff)
downloadgitlab-ce-762d6ab4fd315d9d692d9df814cef206b39b9fdd.tar.gz
Ensuring Merge Request API returns boolean values for work_in_progress
Fixes #14692
Diffstat (limited to 'app/models/merge_request.rb')
-rw-r--r--app/models/merge_request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb
index ef48207f956..7c61a7ae18c 100644
--- a/app/models/merge_request.rb
+++ b/app/models/merge_request.rb
@@ -279,7 +279,7 @@ class MergeRequest < ActiveRecord::Base
WIP_REGEX = /\A\s*(\[WIP\]\s*|WIP:\s*|WIP\s+)+\s*/i.freeze
def work_in_progress?
- title =~ WIP_REGEX
+ !!(title =~ WIP_REGEX)
end
def wipless_title