{"action":"created","comment":{"url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls/comments/101236108","pull_request_review_id":21950066,"id":101236108,"diff_hunk":"@@ -16,16 +16,245 @@\n \n package controllers\n \n-import uk.gov.hmrc.play.test.UnitSpec\n+import assets.ControllerTestSpec\n+import assets.MessageLookup.{UseRegisteredAddress => messages}\n+import auth.{AuthorisedActions, CgtNROrganisation}\n+import common.Keys.KeystoreKeys\n+import connectors.KeystoreConnector\n+import forms.YesNoForm\n+import models.{CompanyAddressModel, ReviewDetails, YesNoModel}\n+import org.jsoup.Jsoup\n+import org.mockito.ArgumentMatchers\n+import org.mockito.ArgumentMatchers._\n+import org.mockito.Mockito._\n+import org.mockito.invocation.InvocationOnMock\n+import org.mockito.stubbing.Answer\n+import play.api.mvc.{Action, AnyContent, Results}\n+import play.api.test.FakeRequest\n+import play.api.test.Helpers._\n+import types.AuthenticatedNROrganisationAction\n+import uk.gov.hmrc.http.cache.client.CacheMap\n+import uk.gov.hmrc.play.frontend.auth.AuthContext\n \n-class CorrespondenceAddressConfirmControllerSpec extends UnitSpec {\n+import scala.concurrent.Future\n+\n+class CorrespondenceAddressConfirmControllerSpec extends ControllerTestSpec {\n+\n+  object TestData {\n+    val businessAddress = CompanyAddressModel(addressLine1 = None,\n+      addressLine2 = None,\n+      addressLine3 = None,\n+      addressLine4 = None,\n+      postCode = None,\n+      country = None)\n+\n+    val businessDetails = ReviewDetails(businessName = \"\",\n+      businessAddress = businessAddress,\n+      sapNumber = \"\",\n+      safeId = \"\",\n+      businessType = None,\n+      agentReferenceNumber = None)\n+  }\n+\n+  val unauthorisedLoginUri = \"dummy-unauthorised-url\"\n+\n+  def createMockActions(valid: Boolean = false): AuthorisedActions = {\n+\n+    val mockActions = mock[AuthorisedActions]\n+\n+    if (valid) {\n+      when(mockActions.authorisedNonResidentOrganisationAction(any()))\n+        .thenAnswer(new Answer[Action[AnyContent]] {\n+\n+          override def answer(invocation: InvocationOnMock): Action[AnyContent] = {\n+            val action = invocation.getArgument[AuthenticatedNROrganisationAction](0)\n+            val organisation = CgtNROrganisation(mock[AuthContext])\n+            Action.async(action(organisation))\n+          }\n+        })\n+    }\n+    else {\n+      when(mockActions.authorisedNonResidentOrganisationAction(any()))\n+        .thenReturn(Action.async(Results.Redirect(unauthorisedLoginUri)))\n+    }\n+\n+    mockActions\n+  }\n \n   \"Calling .correspondenceAddressConfirm\" when {\n \n+    \"no details for the business exist in keystore\" should {\n+\n+      \"return a return a 500 response code\" in {\n+\n+        val request = FakeRequest(\"\", \"\")\n+        val stateService = mock[KeystoreConnector]\n+        val actions = createMockActions(true)\n+        val form = new YesNoForm(messagesApi)\n+        val target = new CorrespondenceAddressConfirmController(mockConfig, messagesApi, stateService, actions, form)\n+\n+        when(stateService.fetchAndGetBusinessData()(any())).thenReturn(Future.successful(None))\n+        when(stateService.fetchAndGetFormData[YesNoModel](anyString())(any(), any())).thenReturn(Future.successful(None))\n+\n+        val result = target.correspondenceAddressConfirm(request)\n+\n+        status(result) shouldBe 500\n+      }\n+    }\n+\n+    \"a previous answer has NOT been supplied\" should {\n+\n+      val request = FakeRequest(\"\", \"\")\n+      val stateService = mock[KeystoreConnector]\n+      val actions = createMockActions(true)\n+      val form = new YesNoForm(messagesApi)\n+      lazy val target = new CorrespondenceAddressConfirmController(mockConfig, messagesApi, stateService, actions, form)\n+      lazy val document = Jsoup.parse(bodyOf(result))\n+\n+      when(stateService.fetchAndGetBusinessData()(any())).thenReturn(Future.successful(Some(TestData.businessDetails)))\n+      when(stateService.fetchAndGetFormData[YesNoModel](anyString())(any(), any())).thenReturn(Future.successful(None))\n+\n+      lazy val result = target.correspondenceAddressConfirm(request)\n+\n+      \"return a return a 200 response code\" in {\n+        status(result) shouldBe 200\n+      }\n+\n+      \"return the correct view\" in {\n+        document.title shouldBe messages.title\n+      }\n+    }\n+\n+    \"a previous answer has been supplied\" should {\n+\n+      val request = FakeRequest(\"\", \"\")\n+      val stateService = mock[KeystoreConnector]\n+      val actions = createMockActions(true)\n+      val form = new YesNoForm(messagesApi)\n+      lazy val target = new CorrespondenceAddressConfirmController(mockConfig, messagesApi, stateService, actions, form)\n+      lazy val document = Jsoup.parse(bodyOf(result))\n+\n+      when(stateService.fetchAndGetBusinessData()(any())).thenReturn(Future.successful(Some(TestData.businessDetails)))\n+      when(stateService.fetchAndGetFormData[YesNoModel](anyString())(any(), any())).thenReturn(Future.successful(Some(YesNoModel(true))))\n+\n+      lazy val result = target.correspondenceAddressConfirm(request)\n+\n+      \"return a return a 200 response code\" in {\n+        status(result) shouldBe 200\n+      }\n+\n+      \"return the correct view\" in {\n+        document.title shouldBe messages.title\n+      }\n+    }\n+","path":"test/controllers/CorrespondenceAddressConfirmControllerSpec.scala","position":114,"original_position":137,"commit_id":"0f613e8d276aa15aaec41ffeee9f25b963382475","original_commit_id":"0f613e8d276aa15aaec41ffeee9f25b963382475","user":{"login":"miranda-hawkes","id":17408278,"avatar_url":"https://avatars.githubusercontent.com/u/17408278?v=3","gravatar_id":"","url":"https://api.github.com/users/miranda-hawkes","html_url":"https://github.com/miranda-hawkes","followers_url":"https://api.github.com/users/miranda-hawkes/followers","following_url":"https://api.github.com/users/miranda-hawkes/following{/other_user}","gists_url":"https://api.github.com/users/miranda-hawkes/gists{/gist_id}","starred_url":"https://api.github.com/users/miranda-hawkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miranda-hawkes/subscriptions","organizations_url":"https://api.github.com/users/miranda-hawkes/orgs","repos_url":"https://api.github.com/users/miranda-hawkes/repos","events_url":"https://api.github.com/users/miranda-hawkes/events{/privacy}","received_events_url":"https://api.github.com/users/miranda-hawkes/received_events","type":"User","site_admin":false},"body":"Can you add a test for when a user is unauthorised - redirect to the dummy-unauthorised-url? And one for the submit action please","created_at":"2017-02-15T09:39:06Z","updated_at":"2017-02-15T09:40:58Z","html_url":"https://github.com/hmrc/capital-gains-subscription-frontend/pull/73#discussion_r101236108","pull_request_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls/73","_links":{"self":{"href":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls/comments/101236108"},"html":{"href":"https://github.com/hmrc/capital-gains-subscription-frontend/pull/73#discussion_r101236108"},"pull_request":{"href":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls/73"}}},"pull_request":{"url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls/73","id":106073588,"html_url":"https://github.com/hmrc/capital-gains-subscription-frontend/pull/73","diff_url":"https://github.com/hmrc/capital-gains-subscription-frontend/pull/73.diff","patch_url":"https://github.com/hmrc/capital-gains-subscription-frontend/pull/73.patch","issue_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/issues/73","number":73,"state":"open","locked":false,"title":"CGT-2540: Controller actions for confirming the correspondence address","user":{"login":"macgrewal","id":7713555,"avatar_url":"https://avatars.githubusercontent.com/u/7713555?v=3","gravatar_id":"","url":"https://api.github.com/users/macgrewal","html_url":"https://github.com/macgrewal","followers_url":"https://api.github.com/users/macgrewal/followers","following_url":"https://api.github.com/users/macgrewal/following{/other_user}","gists_url":"https://api.github.com/users/macgrewal/gists{/gist_id}","starred_url":"https://api.github.com/users/macgrewal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macgrewal/subscriptions","organizations_url":"https://api.github.com/users/macgrewal/orgs","repos_url":"https://api.github.com/users/macgrewal/repos","events_url":"https://api.github.com/users/macgrewal/events{/privacy}","received_events_url":"https://api.github.com/users/macgrewal/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-14T10:16:46Z","updated_at":"2017-02-15T09:40:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8087380f0cf2e40454eac101a496a2adec44fb49","assignee":{"login":"miranda-hawkes","id":17408278,"avatar_url":"https://avatars.githubusercontent.com/u/17408278?v=3","gravatar_id":"","url":"https://api.github.com/users/miranda-hawkes","html_url":"https://github.com/miranda-hawkes","followers_url":"https://api.github.com/users/miranda-hawkes/followers","following_url":"https://api.github.com/users/miranda-hawkes/following{/other_user}","gists_url":"https://api.github.com/users/miranda-hawkes/gists{/gist_id}","starred_url":"https://api.github.com/users/miranda-hawkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miranda-hawkes/subscriptions","organizations_url":"https://api.github.com/users/miranda-hawkes/orgs","repos_url":"https://api.github.com/users/miranda-hawkes/repos","events_url":"https://api.github.com/users/miranda-hawkes/events{/privacy}","received_events_url":"https://api.github.com/users/miranda-hawkes/received_events","type":"User","site_admin":false},"assignees":[{"login":"miranda-hawkes","id":17408278,"avatar_url":"https://avatars.githubusercontent.com/u/17408278?v=3","gravatar_id":"","url":"https://api.github.com/users/miranda-hawkes","html_url":"https://github.com/miranda-hawkes","followers_url":"https://api.github.com/users/miranda-hawkes/followers","following_url":"https://api.github.com/users/miranda-hawkes/following{/other_user}","gists_url":"https://api.github.com/users/miranda-hawkes/gists{/gist_id}","starred_url":"https://api.github.com/users/miranda-hawkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miranda-hawkes/subscriptions","organizations_url":"https://api.github.com/users/miranda-hawkes/orgs","repos_url":"https://api.github.com/users/miranda-hawkes/repos","events_url":"https://api.github.com/users/miranda-hawkes/events{/privacy}","received_events_url":"https://api.github.com/users/miranda-hawkes/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls/73/commits","review_comments_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls/73/comments","review_comment_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/issues/73/comments","statuses_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/statuses/0f613e8d276aa15aaec41ffeee9f25b963382475","head":{"label":"hmrc:CGT-2540","ref":"CGT-2540","sha":"0f613e8d276aa15aaec41ffeee9f25b963382475","user":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"repo":{"id":66628973,"name":"capital-gains-subscription-frontend","full_name":"hmrc/capital-gains-subscription-frontend","owner":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmrc/capital-gains-subscription-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend","forks_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/forks","keys_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/teams","hooks_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/events","assignees_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/tags","blobs_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/languages","stargazers_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/subscription","commits_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/merges","archive_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/downloads","issues_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/deployments","created_at":"2016-08-26T08:03:16Z","updated_at":"2016-08-26T09:14:36Z","pushed_at":"2017-02-15T09:14:26Z","git_url":"git://github.com/hmrc/capital-gains-subscription-frontend.git","ssh_url":"git@github.com:hmrc/capital-gains-subscription-frontend.git","clone_url":"https://github.com/hmrc/capital-gains-subscription-frontend.git","svn_url":"https://github.com/hmrc/capital-gains-subscription-frontend","homepage":"","size":444,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hmrc:master","ref":"master","sha":"cb9cc47ef0162106c307f5e4e7110260906a9c8f","user":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"repo":{"id":66628973,"name":"capital-gains-subscription-frontend","full_name":"hmrc/capital-gains-subscription-frontend","owner":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmrc/capital-gains-subscription-frontend","description":null,"fork":false,"url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend","forks_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/forks","keys_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/teams","hooks_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/events","assignees_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/tags","blobs_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/languages","stargazers_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/subscription","commits_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/merges","archive_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/downloads","issues_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/deployments","created_at":"2016-08-26T08:03:16Z","updated_at":"2016-08-26T09:14:36Z","pushed_at":"2017-02-15T09:14:26Z","git_url":"git://github.com/hmrc/capital-gains-subscription-frontend.git","ssh_url":"git@github.com:hmrc/capital-gains-subscription-frontend.git","clone_url":"https://github.com/hmrc/capital-gains-subscription-frontend.git","svn_url":"https://github.com/hmrc/capital-gains-subscription-frontend","homepage":"","size":444,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls/73"},"html":{"href":"https://github.com/hmrc/capital-gains-subscription-frontend/pull/73"},"issue":{"href":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/issues/73"},"comments":{"href":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/hmrc/capital-gains-subscription-frontend/statuses/0f613e8d276aa15aaec41ffeee9f25b963382475"}}}}
{"actor":{"display_login":"miranda-hawkes"}}