Commit f2a99398 authored by Stan Hu's avatar Stan Hu

Use a case statement to determine pull request state

parent a662670b
......@@ -20,9 +20,10 @@ module BitbucketServer
end
def state
if raw['state'] == 'MERGED'
case raw['state']
when 'MERGED'
'merged'
elsif raw['state'] == 'DECLINED'
when 'DECLINED'
'closed'
else
'opened'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment