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 ...@@ -20,9 +20,10 @@ module BitbucketServer
end end
def state def state
if raw['state'] == 'MERGED' case raw['state']
when 'MERGED'
'merged' 'merged'
elsif raw['state'] == 'DECLINED' when 'DECLINED'
'closed' 'closed'
else else
'opened' '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