{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/Financial-Times/dashing-api/pulls/2","id":47463408,"html_url":"https://github.com/Financial-Times/dashing-api/pull/2","diff_url":"https://github.com/Financial-Times/dashing-api/pull/2.diff","patch_url":"https://github.com/Financial-Times/dashing-api/pull/2.patch","issue_url":"https://api.github.com/repos/Financial-Times/dashing-api/issues/2","number":2,"state":"open","locked":false,"title":"Rearranging functions, fixed variable ref error","user":{"login":"JermilaPaulDhas","id":9730691,"avatar_url":"https://avatars.githubusercontent.com/u/9730691?v=3","gravatar_id":"","url":"https://api.github.com/users/JermilaPaulDhas","html_url":"https://github.com/JermilaPaulDhas","followers_url":"https://api.github.com/users/JermilaPaulDhas/followers","following_url":"https://api.github.com/users/JermilaPaulDhas/following{/other_user}","gists_url":"https://api.github.com/users/JermilaPaulDhas/gists{/gist_id}","starred_url":"https://api.github.com/users/JermilaPaulDhas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JermilaPaulDhas/subscriptions","organizations_url":"https://api.github.com/users/JermilaPaulDhas/orgs","repos_url":"https://api.github.com/users/JermilaPaulDhas/repos","events_url":"https://api.github.com/users/JermilaPaulDhas/events{/privacy}","received_events_url":"https://api.github.com/users/JermilaPaulDhas/received_events","type":"User","site_admin":false},"body":"1. Defined a new function in the helperFunctions script to get the hostname\r\n2. Fixed a variable declaration error\r\n3. Rearranged the routes on the dashing-api script\r\n4. Return output in JSON format","created_at":"2015-10-12T20:55:04Z","updated_at":"2015-10-12T20:55:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50d24e0190103c8cf31a06c41c59ba8d2a1ca868","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Financial-Times/dashing-api/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Financial-Times/dashing-api/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Financial-Times/dashing-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Financial-Times/dashing-api/issues/2/comments","statuses_url":"https://api.github.com/repos/Financial-Times/dashing-api/statuses/f18fc9ee95208bbb058e8d3d2dfcf683a1a3d80f","head":{"label":"Financial-Times:MinorChanges","ref":"MinorChanges","sha":"f18fc9ee95208bbb058e8d3d2dfcf683a1a3d80f","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":43887804,"name":"dashing-api","full_name":"Financial-Times/dashing-api","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/dashing-api","description":"","fork":false,"url":"https://api.github.com/repos/Financial-Times/dashing-api","forks_url":"https://api.github.com/repos/Financial-Times/dashing-api/forks","keys_url":"https://api.github.com/repos/Financial-Times/dashing-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/dashing-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/dashing-api/teams","hooks_url":"https://api.github.com/repos/Financial-Times/dashing-api/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/dashing-api/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/dashing-api/events","assignees_url":"https://api.github.com/repos/Financial-Times/dashing-api/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/dashing-api/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/dashing-api/tags","blobs_url":"https://api.github.com/repos/Financial-Times/dashing-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/dashing-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/dashing-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/dashing-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/dashing-api/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/dashing-api/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/dashing-api/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/dashing-api/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/dashing-api/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/dashing-api/subscription","commits_url":"https://api.github.com/repos/Financial-Times/dashing-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/dashing-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/dashing-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/dashing-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/dashing-api/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/dashing-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/dashing-api/merges","archive_url":"https://api.github.com/repos/Financial-Times/dashing-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/dashing-api/downloads","issues_url":"https://api.github.com/repos/Financial-Times/dashing-api/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/dashing-api/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/dashing-api/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/dashing-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/dashing-api/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/dashing-api/releases{/id}","created_at":"2015-10-08T12:47:24Z","updated_at":"2015-10-08T12:47:55Z","pushed_at":"2015-10-12T20:55:05Z","git_url":"git://github.com/Financial-Times/dashing-api.git","ssh_url":"git@github.com:Financial-Times/dashing-api.git","clone_url":"https://github.com/Financial-Times/dashing-api.git","svn_url":"https://github.com/Financial-Times/dashing-api","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"Financial-Times:master","ref":"master","sha":"b4af57fc91c0dec11a1c8c2f3bc01043d63dea9e","user":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"repo":{"id":43887804,"name":"dashing-api","full_name":"Financial-Times/dashing-api","owner":{"login":"Financial-Times","id":3502508,"avatar_url":"https://avatars.githubusercontent.com/u/3502508?v=3","gravatar_id":"","url":"https://api.github.com/users/Financial-Times","html_url":"https://github.com/Financial-Times","followers_url":"https://api.github.com/users/Financial-Times/followers","following_url":"https://api.github.com/users/Financial-Times/following{/other_user}","gists_url":"https://api.github.com/users/Financial-Times/gists{/gist_id}","starred_url":"https://api.github.com/users/Financial-Times/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Financial-Times/subscriptions","organizations_url":"https://api.github.com/users/Financial-Times/orgs","repos_url":"https://api.github.com/users/Financial-Times/repos","events_url":"https://api.github.com/users/Financial-Times/events{/privacy}","received_events_url":"https://api.github.com/users/Financial-Times/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Financial-Times/dashing-api","description":"","fork":false,"url":"https://api.github.com/repos/Financial-Times/dashing-api","forks_url":"https://api.github.com/repos/Financial-Times/dashing-api/forks","keys_url":"https://api.github.com/repos/Financial-Times/dashing-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Financial-Times/dashing-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Financial-Times/dashing-api/teams","hooks_url":"https://api.github.com/repos/Financial-Times/dashing-api/hooks","issue_events_url":"https://api.github.com/repos/Financial-Times/dashing-api/issues/events{/number}","events_url":"https://api.github.com/repos/Financial-Times/dashing-api/events","assignees_url":"https://api.github.com/repos/Financial-Times/dashing-api/assignees{/user}","branches_url":"https://api.github.com/repos/Financial-Times/dashing-api/branches{/branch}","tags_url":"https://api.github.com/repos/Financial-Times/dashing-api/tags","blobs_url":"https://api.github.com/repos/Financial-Times/dashing-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Financial-Times/dashing-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Financial-Times/dashing-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/Financial-Times/dashing-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Financial-Times/dashing-api/statuses/{sha}","languages_url":"https://api.github.com/repos/Financial-Times/dashing-api/languages","stargazers_url":"https://api.github.com/repos/Financial-Times/dashing-api/stargazers","contributors_url":"https://api.github.com/repos/Financial-Times/dashing-api/contributors","subscribers_url":"https://api.github.com/repos/Financial-Times/dashing-api/subscribers","subscription_url":"https://api.github.com/repos/Financial-Times/dashing-api/subscription","commits_url":"https://api.github.com/repos/Financial-Times/dashing-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/Financial-Times/dashing-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/Financial-Times/dashing-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/Financial-Times/dashing-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/Financial-Times/dashing-api/contents/{+path}","compare_url":"https://api.github.com/repos/Financial-Times/dashing-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Financial-Times/dashing-api/merges","archive_url":"https://api.github.com/repos/Financial-Times/dashing-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Financial-Times/dashing-api/downloads","issues_url":"https://api.github.com/repos/Financial-Times/dashing-api/issues{/number}","pulls_url":"https://api.github.com/repos/Financial-Times/dashing-api/pulls{/number}","milestones_url":"https://api.github.com/repos/Financial-Times/dashing-api/milestones{/number}","notifications_url":"https://api.github.com/repos/Financial-Times/dashing-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Financial-Times/dashing-api/labels{/name}","releases_url":"https://api.github.com/repos/Financial-Times/dashing-api/releases{/id}","created_at":"2015-10-08T12:47:24Z","updated_at":"2015-10-08T12:47:55Z","pushed_at":"2015-10-12T20:55:05Z","git_url":"git://github.com/Financial-Times/dashing-api.git","ssh_url":"git@github.com:Financial-Times/dashing-api.git","clone_url":"https://github.com/Financial-Times/dashing-api.git","svn_url":"https://github.com/Financial-Times/dashing-api","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/Financial-Times/dashing-api/pulls/2"},"html":{"href":"https://github.com/Financial-Times/dashing-api/pull/2"},"issue":{"href":"https://api.github.com/repos/Financial-Times/dashing-api/issues/2"},"comments":{"href":"https://api.github.com/repos/Financial-Times/dashing-api/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Financial-Times/dashing-api/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Financial-Times/dashing-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Financial-Times/dashing-api/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Financial-Times/dashing-api/statuses/f18fc9ee95208bbb058e8d3d2dfcf683a1a3d80f"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":169,"deletions":169,"changed_files":2}}