提交 f2a99398 编写于 作者: S Stan Hu

Use a case statement to determine pull request state

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册