{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/elastic/topbeat/pulls/5","id":42846622,"html_url":"https://github.com/elastic/topbeat/pull/5","diff_url":"https://github.com/elastic/topbeat/pull/5.diff","patch_url":"https://github.com/elastic/topbeat/pull/5.patch","issue_url":"https://api.github.com/repos/elastic/topbeat/issues/5","number":5,"state":"open","locked":false,"title":"Simplify the main function.","user":{"login":"tsg","id":101817,"avatar_url":"https://avatars.githubusercontent.com/u/101817?v=3","gravatar_id":"","url":"https://api.github.com/users/tsg","html_url":"https://github.com/tsg","followers_url":"https://api.github.com/users/tsg/followers","following_url":"https://api.github.com/users/tsg/following{/other_user}","gists_url":"https://api.github.com/users/tsg/gists{/gist_id}","starred_url":"https://api.github.com/users/tsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsg/subscriptions","organizations_url":"https://api.github.com/users/tsg/orgs","repos_url":"https://api.github.com/users/tsg/repos","events_url":"https://api.github.com/users/tsg/events{/privacy}","received_events_url":"https://api.github.com/users/tsg/received_events","type":"User","site_admin":false},"body":"This moves the Topbeat.Run() method in the main goroutine instead\r\nof creating a new one and then having to wait for it.","created_at":"2015-08-19T18:18:29Z","updated_at":"2015-08-19T18:18:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8ea93bea766d8a00ff64793d3b65baa77e354481","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/elastic/topbeat/pulls/5/commits","review_comments_url":"https://api.github.com/repos/elastic/topbeat/pulls/5/comments","review_comment_url":"https://api.github.com/repos/elastic/topbeat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/topbeat/issues/5/comments","statuses_url":"https://api.github.com/repos/elastic/topbeat/statuses/21458feac31e0b38356fbbe20e26eb0317613b3c","head":{"label":"tsg:simplifymain","ref":"simplifymain","sha":"21458feac31e0b38356fbbe20e26eb0317613b3c","user":{"login":"tsg","id":101817,"avatar_url":"https://avatars.githubusercontent.com/u/101817?v=3","gravatar_id":"","url":"https://api.github.com/users/tsg","html_url":"https://github.com/tsg","followers_url":"https://api.github.com/users/tsg/followers","following_url":"https://api.github.com/users/tsg/following{/other_user}","gists_url":"https://api.github.com/users/tsg/gists{/gist_id}","starred_url":"https://api.github.com/users/tsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsg/subscriptions","organizations_url":"https://api.github.com/users/tsg/orgs","repos_url":"https://api.github.com/users/tsg/repos","events_url":"https://api.github.com/users/tsg/events{/privacy}","received_events_url":"https://api.github.com/users/tsg/received_events","type":"User","site_admin":false},"repo":{"id":40648987,"name":"topbeat","full_name":"tsg/topbeat","owner":{"login":"tsg","id":101817,"avatar_url":"https://avatars.githubusercontent.com/u/101817?v=3","gravatar_id":"","url":"https://api.github.com/users/tsg","html_url":"https://github.com/tsg","followers_url":"https://api.github.com/users/tsg/followers","following_url":"https://api.github.com/users/tsg/following{/other_user}","gists_url":"https://api.github.com/users/tsg/gists{/gist_id}","starred_url":"https://api.github.com/users/tsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsg/subscriptions","organizations_url":"https://api.github.com/users/tsg/orgs","repos_url":"https://api.github.com/users/tsg/repos","events_url":"https://api.github.com/users/tsg/events{/privacy}","received_events_url":"https://api.github.com/users/tsg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tsg/topbeat","description":"Ship system wide and per process statistics to Elasticsearch","fork":true,"url":"https://api.github.com/repos/tsg/topbeat","forks_url":"https://api.github.com/repos/tsg/topbeat/forks","keys_url":"https://api.github.com/repos/tsg/topbeat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tsg/topbeat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tsg/topbeat/teams","hooks_url":"https://api.github.com/repos/tsg/topbeat/hooks","issue_events_url":"https://api.github.com/repos/tsg/topbeat/issues/events{/number}","events_url":"https://api.github.com/repos/tsg/topbeat/events","assignees_url":"https://api.github.com/repos/tsg/topbeat/assignees{/user}","branches_url":"https://api.github.com/repos/tsg/topbeat/branches{/branch}","tags_url":"https://api.github.com/repos/tsg/topbeat/tags","blobs_url":"https://api.github.com/repos/tsg/topbeat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tsg/topbeat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tsg/topbeat/git/refs{/sha}","trees_url":"https://api.github.com/repos/tsg/topbeat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tsg/topbeat/statuses/{sha}","languages_url":"https://api.github.com/repos/tsg/topbeat/languages","stargazers_url":"https://api.github.com/repos/tsg/topbeat/stargazers","contributors_url":"https://api.github.com/repos/tsg/topbeat/contributors","subscribers_url":"https://api.github.com/repos/tsg/topbeat/subscribers","subscription_url":"https://api.github.com/repos/tsg/topbeat/subscription","commits_url":"https://api.github.com/repos/tsg/topbeat/commits{/sha}","git_commits_url":"https://api.github.com/repos/tsg/topbeat/git/commits{/sha}","comments_url":"https://api.github.com/repos/tsg/topbeat/comments{/number}","issue_comment_url":"https://api.github.com/repos/tsg/topbeat/issues/comments{/number}","contents_url":"https://api.github.com/repos/tsg/topbeat/contents/{+path}","compare_url":"https://api.github.com/repos/tsg/topbeat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tsg/topbeat/merges","archive_url":"https://api.github.com/repos/tsg/topbeat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tsg/topbeat/downloads","issues_url":"https://api.github.com/repos/tsg/topbeat/issues{/number}","pulls_url":"https://api.github.com/repos/tsg/topbeat/pulls{/number}","milestones_url":"https://api.github.com/repos/tsg/topbeat/milestones{/number}","notifications_url":"https://api.github.com/repos/tsg/topbeat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tsg/topbeat/labels{/name}","releases_url":"https://api.github.com/repos/tsg/topbeat/releases{/id}","created_at":"2015-08-13T08:58:16Z","updated_at":"2015-08-13T08:58:16Z","pushed_at":"2015-08-19T18:11:44Z","git_url":"git://github.com/tsg/topbeat.git","ssh_url":"git@github.com:tsg/topbeat.git","clone_url":"https://github.com/tsg/topbeat.git","svn_url":"https://github.com/tsg/topbeat","homepage":null,"size":93,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"master"}},"base":{"label":"elastic:master","ref":"master","sha":"13294cb30f7b3c70bd24ca5fb0651607ce97bbdd","user":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":40000811,"name":"topbeat","full_name":"elastic/topbeat","owner":{"login":"elastic","id":6764390,"avatar_url":"https://avatars.githubusercontent.com/u/6764390?v=3","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/topbeat","description":"Ship system wide and per process statistics to Elasticsearch","fork":false,"url":"https://api.github.com/repos/elastic/topbeat","forks_url":"https://api.github.com/repos/elastic/topbeat/forks","keys_url":"https://api.github.com/repos/elastic/topbeat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/topbeat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/topbeat/teams","hooks_url":"https://api.github.com/repos/elastic/topbeat/hooks","issue_events_url":"https://api.github.com/repos/elastic/topbeat/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/topbeat/events","assignees_url":"https://api.github.com/repos/elastic/topbeat/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/topbeat/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/topbeat/tags","blobs_url":"https://api.github.com/repos/elastic/topbeat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/topbeat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/topbeat/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/topbeat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/topbeat/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/topbeat/languages","stargazers_url":"https://api.github.com/repos/elastic/topbeat/stargazers","contributors_url":"https://api.github.com/repos/elastic/topbeat/contributors","subscribers_url":"https://api.github.com/repos/elastic/topbeat/subscribers","subscription_url":"https://api.github.com/repos/elastic/topbeat/subscription","commits_url":"https://api.github.com/repos/elastic/topbeat/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/topbeat/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/topbeat/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/topbeat/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/topbeat/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/topbeat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/topbeat/merges","archive_url":"https://api.github.com/repos/elastic/topbeat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/topbeat/downloads","issues_url":"https://api.github.com/repos/elastic/topbeat/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/topbeat/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/topbeat/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/topbeat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/topbeat/labels{/name}","releases_url":"https://api.github.com/repos/elastic/topbeat/releases{/id}","created_at":"2015-07-31T10:44:29Z","updated_at":"2015-08-06T09:39:56Z","pushed_at":"2015-08-19T18:18:29Z","git_url":"git://github.com/elastic/topbeat.git","ssh_url":"git@github.com:elastic/topbeat.git","clone_url":"https://github.com/elastic/topbeat.git","svn_url":"https://github.com/elastic/topbeat","homepage":null,"size":344,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/topbeat/pulls/5"},"html":{"href":"https://github.com/elastic/topbeat/pull/5"},"issue":{"href":"https://api.github.com/repos/elastic/topbeat/issues/5"},"comments":{"href":"https://api.github.com/repos/elastic/topbeat/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/topbeat/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/topbeat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/topbeat/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/topbeat/statuses/21458feac31e0b38356fbbe20e26eb0317613b3c"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":23,"changed_files":1}}