{"action":"created","comment":{"url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/pulls/comments/67693577","id":67693577,"diff_hunk":"@@ -9,217 +10,245 @@ import (\n \t. \"github.com/onsi/ginkgo\"\n \t. \"github.com/onsi/gomega\"\n \t\"github.com/onsi/gomega/ghttp\"\n+\t\"github.com/pivotal-golang/lager\"\n )\n \n+var infoBody = []byte(`\n+{\n+   \"name\": \"\",\n+   \"build\": \"\",\n+   \"support\": \"http://support.cloudfoundry.com\",\n+   \"version\": 0,\n+   \"description\": \"\",\n+   \"authorization_endpoint\": \"test-oauth-endpoint\",\n+   \"token_endpoint\": \"test-token-endpoint\",\n+   \"min_cli_version\": null,\n+   \"min_recommended_cli_version\": null,\n+   \"api_version\": \"2.48.0\",\n+   \"app_ssh_endpoint\": \"ssh.bosh-lite.com:2222\",\n+   \"app_ssh_host_key_fingerprint\": \"a6:d1:08:0b:b0:cb:9b:5f:c4:ba:44:2a:97:26:19:8a\",\n+   \"app_ssh_oauth_client\": \"ssh-proxy\",\n+   \"routing_endpoint\": \"https://api.bosh-lite.com/routing\",\n+   \"logging_endpoint\": \"wss://loggregator.bosh-lite.com:443\",\n+   \"doppler_logging_endpoint\": \"test-doppler-endpoint\",\n+   \"user\": \"38b2f682-04bf-48af-9e08-0325aa5c4ea9\"\n+}\n+`)\n+\n+var authBody = []byte(`\n+{\n+\t\"access_token\":\"test-access-token\",\n+\t\"token_type\":\"bearer\",\n+\t\"refresh_token\":\"test-refresh-token\",\n+\t\"expires_in\":12000,\n+\t\"scope\":\"openid cloud_controller.read password.write cloud_controller.write\",\n+\t\"jti\":\"a735f90f-0b49-447d-8f9d-ae2fbc1491dd\"\n+}\n+`)\n+\n var _ = Describe(\"CfClient\", func() {\n \tDescribe(\"Login\", func() {\n \t\tvar (\n-\t\t\tfakeCC *ghttp.Server\n-\t\t\tcfc    CfClient\n-\t\t\tconf   *config.Config\n-\t\t\terr    error\n+\t\t\tfakeCC          *ghttp.Server\n+\t\t\tfakeLoginServer *ghttp.Server\n+\t\t\tcfc             CfClient\n+\t\t\tconf            *config.Config\n+\t\t\terr             error\n \t\t)\n \n \t\tBeforeEach(func() {\n \t\t\tfakeCC = ghttp.NewServer()\n-\t\t\tconf = config.DefaultConfig()\n+\t\t\tfakeLoginServer = ghttp.NewServer()\n+\t\t\tconf = &config.Config{\n+\t\t\t\tCf:      config.DefaultCfConfig,\n+\t\t\t\tLogging: config.DefaultLoggingConfig,\n+\t\t\t\tServer:  config.DefaultServerConfig,\n+\t\t\t}\n+\n \t\t\tconf.Cf.Api = fakeCC.URL()\n \t\t\terr = nil\n \t\t})\n \n \t\tJustBeforeEach(func() {\n-\t\t\tcfc = NewCfClient(&conf.Cf)\n+\t\t\tcfc = NewCfClient(&conf.Cf, lager.NewLogger(\"cf\"))\n \t\t\terr = cfc.Login()\n \t\t})\n \n \t\tAfterEach(func() {\n \t\t\tif fakeCC != nil {\n \t\t\t\tfakeCC.Close()\n \t\t\t}\n+\t\t\tif fakeLoginServer != nil {\n+\t\t\t\tfakeLoginServer.Close()\n+\t\t\t}\n+\n \t\t})\n \n-\t\tContext(\"when retrieving endpoints fail\", func() {\n+\t\tContext(\"when retrieving endpoints fails\", func() {\n+\t\t\tContext(\"when the request fails\", func() {\n+\t\t\t\tBeforeEach(func() {\n+\t\t\t\t\tfakeCC.Close()\n+\t\t\t\t\tfakeCC = nil\n+\t\t\t\t})\n+\n+\t\t\t\tIt(\"should error\", func() {\n+\t\t\t\t\tExpect(err).To(BeAssignableToTypeOf(&url.Error{}))\n+\t\t\t\t\turlErr := err.(*url.Error)\n+\t\t\t\t\tExpect(urlErr.Err).To(BeAssignableToTypeOf(&net.OpError{}))\n+\t\t\t\t})\n+\t\t\t})\n+\n \t\t\tContext(\"when a non-200 status code is returned\", func() {\n \t\t\t\tBeforeEach(func() {\n \t\t\t\t\tfakeCC.AppendHandlers(\n \t\t\t\t\t\tghttp.CombineHandlers(\n-\t\t\t\t\t\t\tghttp.VerifyRequest(\"GET\", \"/v2/info\"),\n+\t\t\t\t\t\t\tghttp.VerifyRequest(\"GET\", PATH_CF_INFO),\n \t\t\t\t\t\t\tghttp.RespondWith(500, \"\"),\n \t\t\t\t\t\t),\n \t\t\t\t\t)\n \t\t\t\t})\n \n-\t\t\t\tIt(\"returns an error\", func() {\n-\t\t\t\t\tExpect(err).To(MatchError(MatchRegexp(\"Error retrieving cf endpoints: .*\")))\n+\t\t\t\tIt(\"should error\", func() {\n+\t\t\t\t\tExpect(err).To(MatchError(MatchRegexp(\"Error requesting endpoints: .*\")))\n \t\t\t\t})\n \t\t\t})\n \n-\t\t\tContext(\"when the request fails\", func() {\n+\t\t})\n+\n+\t\tContext(\"when retrieving endpoints succeeds\", func() {\n+\t\t\tContext(\"when the auth url is not valid\", func() {\n \t\t\t\tBeforeEach(func() {\n-\t\t\t\t\tfakeCC.Close()\n-\t\t\t\t\tfakeCC = nil\n+\t\t\t\t\tfakeCC.AppendHandlers(\n+\t\t\t\t\t\tghttp.CombineHandlers(\n+\t\t\t\t\t\t\tghttp.VerifyRequest(\"GET\", PATH_CF_INFO),\n+\t\t\t\t\t\t\tghttp.RespondWith(200, bytes.Replace(infoBody, []byte(\"test-oauth-endpoint\"), []byte(\"http://www.not-exist.com\"), -1)),\n+\t\t\t\t\t\t),\n+\t\t\t\t\t)\n \t\t\t\t})\n \n-\t\t\t\tIt(\"returns an error\", func() {\n+\t\t\t\tIt(\"should have the endpoints populated and return error\", func() {\n+\t\t\t\t\tExpect(cfc.GetEndpoints().AuthEndpoint).To(Equal(\"http://www.not-exist.com\"))","path":"src/metrics-collector/cf/cf_client_test.go","position":null,"original_position":143,"commit_id":"e78cfac3070fd1e67c7fbec2da62cf70fcd3eb78","original_commit_id":"e78cfac3070fd1e67c7fbec2da62cf70fcd3eb78","user":{"login":"fraenkel","id":929377,"avatar_url":"https://avatars.githubusercontent.com/u/929377?v=3","gravatar_id":"","url":"https://api.github.com/users/fraenkel","html_url":"https://github.com/fraenkel","followers_url":"https://api.github.com/users/fraenkel/followers","following_url":"https://api.github.com/users/fraenkel/following{/other_user}","gists_url":"https://api.github.com/users/fraenkel/gists{/gist_id}","starred_url":"https://api.github.com/users/fraenkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraenkel/subscriptions","organizations_url":"https://api.github.com/users/fraenkel/orgs","repos_url":"https://api.github.com/users/fraenkel/repos","events_url":"https://api.github.com/users/fraenkel/events{/privacy}","received_events_url":"https://api.github.com/users/fraenkel/received_events","type":"User","site_admin":false},"body":"The testing of the Endpoints should be a separate positive test, not combined with some failure case.","created_at":"2016-06-20T13:58:43Z","updated_at":"2016-06-20T13:58:43Z","html_url":"https://github.com/cloudfoundry-incubator/app-autoscaler/pull/39#discussion_r67693577","pull_request_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/pulls/comments/67693577"},"html":{"href":"https://github.com/cloudfoundry-incubator/app-autoscaler/pull/39#discussion_r67693577"},"pull_request":{"href":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/pulls/39","id":74374662,"html_url":"https://github.com/cloudfoundry-incubator/app-autoscaler/pull/39","diff_url":"https://github.com/cloudfoundry-incubator/app-autoscaler/pull/39.diff","patch_url":"https://github.com/cloudfoundry-incubator/app-autoscaler/pull/39.patch","issue_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/issues/39","number":39,"state":"open","locked":false,"title":"retrieve application metric for an application","user":{"login":"boyang9527","id":5013402,"avatar_url":"https://avatars.githubusercontent.com/u/5013402?v=3","gravatar_id":"","url":"https://api.github.com/users/boyang9527","html_url":"https://github.com/boyang9527","followers_url":"https://api.github.com/users/boyang9527/followers","following_url":"https://api.github.com/users/boyang9527/following{/other_user}","gists_url":"https://api.github.com/users/boyang9527/gists{/gist_id}","starred_url":"https://api.github.com/users/boyang9527/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boyang9527/subscriptions","organizations_url":"https://api.github.com/users/boyang9527/orgs","repos_url":"https://api.github.com/users/boyang9527/repos","events_url":"https://api.github.com/users/boyang9527/events{/privacy}","received_events_url":"https://api.github.com/users/boyang9527/received_events","type":"User","site_admin":false},"body":"[#119505091]\r\n- refactoring code for logging, configuration, ginkgo tests and readme\r\n- not include refactoring using ifrit and cf_http","created_at":"2016-06-19T21:30:22Z","updated_at":"2016-06-20T13:58:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72acd537b8fa1f16efbbe8feec3839fe8f5df70b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/pulls/39/commits","review_comments_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/pulls/39/comments","review_comment_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/issues/39/comments","statuses_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/statuses/e78cfac3070fd1e67c7fbec2da62cf70fcd3eb78","head":{"label":"boyang9527:mc","ref":"mc","sha":"e78cfac3070fd1e67c7fbec2da62cf70fcd3eb78","user":{"login":"boyang9527","id":5013402,"avatar_url":"https://avatars.githubusercontent.com/u/5013402?v=3","gravatar_id":"","url":"https://api.github.com/users/boyang9527","html_url":"https://github.com/boyang9527","followers_url":"https://api.github.com/users/boyang9527/followers","following_url":"https://api.github.com/users/boyang9527/following{/other_user}","gists_url":"https://api.github.com/users/boyang9527/gists{/gist_id}","starred_url":"https://api.github.com/users/boyang9527/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boyang9527/subscriptions","organizations_url":"https://api.github.com/users/boyang9527/orgs","repos_url":"https://api.github.com/users/boyang9527/repos","events_url":"https://api.github.com/users/boyang9527/events{/privacy}","received_events_url":"https://api.github.com/users/boyang9527/received_events","type":"User","site_admin":false},"repo":{"id":56274020,"name":"app-autoscaler","full_name":"boyang9527/app-autoscaler","owner":{"login":"boyang9527","id":5013402,"avatar_url":"https://avatars.githubusercontent.com/u/5013402?v=3","gravatar_id":"","url":"https://api.github.com/users/boyang9527","html_url":"https://github.com/boyang9527","followers_url":"https://api.github.com/users/boyang9527/followers","following_url":"https://api.github.com/users/boyang9527/following{/other_user}","gists_url":"https://api.github.com/users/boyang9527/gists{/gist_id}","starred_url":"https://api.github.com/users/boyang9527/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boyang9527/subscriptions","organizations_url":"https://api.github.com/users/boyang9527/orgs","repos_url":"https://api.github.com/users/boyang9527/repos","events_url":"https://api.github.com/users/boyang9527/events{/privacy}","received_events_url":"https://api.github.com/users/boyang9527/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/boyang9527/app-autoscaler","description":"Auto Scaling for CF Applications","fork":true,"url":"https://api.github.com/repos/boyang9527/app-autoscaler","forks_url":"https://api.github.com/repos/boyang9527/app-autoscaler/forks","keys_url":"https://api.github.com/repos/boyang9527/app-autoscaler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boyang9527/app-autoscaler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boyang9527/app-autoscaler/teams","hooks_url":"https://api.github.com/repos/boyang9527/app-autoscaler/hooks","issue_events_url":"https://api.github.com/repos/boyang9527/app-autoscaler/issues/events{/number}","events_url":"https://api.github.com/repos/boyang9527/app-autoscaler/events","assignees_url":"https://api.github.com/repos/boyang9527/app-autoscaler/assignees{/user}","branches_url":"https://api.github.com/repos/boyang9527/app-autoscaler/branches{/branch}","tags_url":"https://api.github.com/repos/boyang9527/app-autoscaler/tags","blobs_url":"https://api.github.com/repos/boyang9527/app-autoscaler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boyang9527/app-autoscaler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boyang9527/app-autoscaler/git/refs{/sha}","trees_url":"https://api.github.com/repos/boyang9527/app-autoscaler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boyang9527/app-autoscaler/statuses/{sha}","languages_url":"https://api.github.com/repos/boyang9527/app-autoscaler/languages","stargazers_url":"https://api.github.com/repos/boyang9527/app-autoscaler/stargazers","contributors_url":"https://api.github.com/repos/boyang9527/app-autoscaler/contributors","subscribers_url":"https://api.github.com/repos/boyang9527/app-autoscaler/subscribers","subscription_url":"https://api.github.com/repos/boyang9527/app-autoscaler/subscription","commits_url":"https://api.github.com/repos/boyang9527/app-autoscaler/commits{/sha}","git_commits_url":"https://api.github.com/repos/boyang9527/app-autoscaler/git/commits{/sha}","comments_url":"https://api.github.com/repos/boyang9527/app-autoscaler/comments{/number}","issue_comment_url":"https://api.github.com/repos/boyang9527/app-autoscaler/issues/comments{/number}","contents_url":"https://api.github.com/repos/boyang9527/app-autoscaler/contents/{+path}","compare_url":"https://api.github.com/repos/boyang9527/app-autoscaler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boyang9527/app-autoscaler/merges","archive_url":"https://api.github.com/repos/boyang9527/app-autoscaler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boyang9527/app-autoscaler/downloads","issues_url":"https://api.github.com/repos/boyang9527/app-autoscaler/issues{/number}","pulls_url":"https://api.github.com/repos/boyang9527/app-autoscaler/pulls{/number}","milestones_url":"https://api.github.com/repos/boyang9527/app-autoscaler/milestones{/number}","notifications_url":"https://api.github.com/repos/boyang9527/app-autoscaler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boyang9527/app-autoscaler/labels{/name}","releases_url":"https://api.github.com/repos/boyang9527/app-autoscaler/releases{/id}","deployments_url":"https://api.github.com/repos/boyang9527/app-autoscaler/deployments","created_at":"2016-04-14T22:31:10Z","updated_at":"2016-04-14T22:31:12Z","pushed_at":"2016-06-19T21:26:17Z","git_url":"git://github.com/boyang9527/app-autoscaler.git","ssh_url":"git@github.com:boyang9527/app-autoscaler.git","clone_url":"https://github.com/boyang9527/app-autoscaler.git","svn_url":"https://github.com/boyang9527/app-autoscaler","homepage":"","size":1186,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"cloudfoundry-incubator:develop","ref":"develop","sha":"bc5901a03ebad72c2caf96ba3342a81f3719250a","user":{"login":"cloudfoundry-incubator","id":5680605,"avatar_url":"https://avatars.githubusercontent.com/u/5680605?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry-incubator","html_url":"https://github.com/cloudfoundry-incubator","followers_url":"https://api.github.com/users/cloudfoundry-incubator/followers","following_url":"https://api.github.com/users/cloudfoundry-incubator/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry-incubator/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry-incubator/orgs","repos_url":"https://api.github.com/users/cloudfoundry-incubator/repos","events_url":"https://api.github.com/users/cloudfoundry-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry-incubator/received_events","type":"Organization","site_admin":false},"repo":{"id":55270767,"name":"app-autoscaler","full_name":"cloudfoundry-incubator/app-autoscaler","owner":{"login":"cloudfoundry-incubator","id":5680605,"avatar_url":"https://avatars.githubusercontent.com/u/5680605?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudfoundry-incubator","html_url":"https://github.com/cloudfoundry-incubator","followers_url":"https://api.github.com/users/cloudfoundry-incubator/followers","following_url":"https://api.github.com/users/cloudfoundry-incubator/following{/other_user}","gists_url":"https://api.github.com/users/cloudfoundry-incubator/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudfoundry-incubator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudfoundry-incubator/subscriptions","organizations_url":"https://api.github.com/users/cloudfoundry-incubator/orgs","repos_url":"https://api.github.com/users/cloudfoundry-incubator/repos","events_url":"https://api.github.com/users/cloudfoundry-incubator/events{/privacy}","received_events_url":"https://api.github.com/users/cloudfoundry-incubator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cloudfoundry-incubator/app-autoscaler","description":"Auto Scaling for CF Applications","fork":false,"url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler","forks_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/forks","keys_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/teams","hooks_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/hooks","issue_events_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/issues/events{/number}","events_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/events","assignees_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/assignees{/user}","branches_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/branches{/branch}","tags_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/tags","blobs_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/git/refs{/sha}","trees_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/statuses/{sha}","languages_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/languages","stargazers_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/stargazers","contributors_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/contributors","subscribers_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/subscribers","subscription_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/subscription","commits_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/commits{/sha}","git_commits_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/git/commits{/sha}","comments_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/comments{/number}","issue_comment_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/issues/comments{/number}","contents_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/contents/{+path}","compare_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/merges","archive_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/downloads","issues_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/issues{/number}","pulls_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/pulls{/number}","milestones_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/milestones{/number}","notifications_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/labels{/name}","releases_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/releases{/id}","deployments_url":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/deployments","created_at":"2016-04-02T00:47:11Z","updated_at":"2016-06-13T18:26:54Z","pushed_at":"2016-06-20T05:25:47Z","git_url":"git://github.com/cloudfoundry-incubator/app-autoscaler.git","ssh_url":"git@github.com:cloudfoundry-incubator/app-autoscaler.git","clone_url":"https://github.com/cloudfoundry-incubator/app-autoscaler.git","svn_url":"https://github.com/cloudfoundry-incubator/app-autoscaler","homepage":"","size":780,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/pulls/39"},"html":{"href":"https://github.com/cloudfoundry-incubator/app-autoscaler/pull/39"},"issue":{"href":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/issues/39"},"comments":{"href":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/cloudfoundry-incubator/app-autoscaler/statuses/e78cfac3070fd1e67c7fbec2da62cf70fcd3eb78"}}}}
{"actor":{"display_login":"fraenkel"}}