From 3735ce43fc5adfb82fb22730978ba0bca696c37d Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Sun, 1 Jul 2018 05:13:15 -0700 Subject: Add a Reconfigure button and improve layout of import screen --- lib/bitbucket_server/representation/pull_request.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/bitbucket_server/representation/pull_request.rb') diff --git a/lib/bitbucket_server/representation/pull_request.rb b/lib/bitbucket_server/representation/pull_request.rb index 96a27564641..3e460f04064 100644 --- a/lib/bitbucket_server/representation/pull_request.rb +++ b/lib/bitbucket_server/representation/pull_request.rb @@ -27,6 +27,10 @@ module BitbucketServer end end + def merged? + state == 'merged' + end + def created_at raw['createdDate'] end -- cgit v1.2.1