{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/pulls/2","id":30619085,"html_url":"https://github.com/SpartzOSS/DowntimeMonitor/pull/2","diff_url":"https://github.com/SpartzOSS/DowntimeMonitor/pull/2.diff","patch_url":"https://github.com/SpartzOSS/DowntimeMonitor/pull/2.patch","issue_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/issues/2","number":2,"state":"closed","locked":false,"title":"Fixing condition for first run","user":{"login":"himelnagrana","id":1459839,"avatar_url":"https://avatars.githubusercontent.com/u/1459839?v=3","gravatar_id":"","url":"https://api.github.com/users/himelnagrana","html_url":"https://github.com/himelnagrana","followers_url":"https://api.github.com/users/himelnagrana/followers","following_url":"https://api.github.com/users/himelnagrana/following{/other_user}","gists_url":"https://api.github.com/users/himelnagrana/gists{/gist_id}","starred_url":"https://api.github.com/users/himelnagrana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/himelnagrana/subscriptions","organizations_url":"https://api.github.com/users/himelnagrana/orgs","repos_url":"https://api.github.com/users/himelnagrana/repos","events_url":"https://api.github.com/users/himelnagrana/events{/privacy}","received_events_url":"https://api.github.com/users/himelnagrana/received_events","type":"User","site_admin":false},"body":"I was browsing and installed this repo in my local. When I ran it for the first time I found that the $file content is empty. So at line 37, the parsing and listing gives an error. I put a condition there to check if the content is empty or not. I hope it is the intended way.\r\n\r\nThanks.","created_at":"2015-03-06T03:46:13Z","updated_at":"2015-03-09T14:12:29Z","closed_at":"2015-03-09T14:12:29Z","merged_at":"2015-03-09T14:12:29Z","merge_commit_sha":"ae7540557e2b2c39705e1c47069e73703a04f2e7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/pulls/2/commits","review_comments_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/pulls/2/comments","review_comment_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/issues/2/comments","statuses_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/statuses/5f602a0529b617bc631cc3df2fe7ecd20da94dbd","head":{"label":"himelnagrana:master","ref":"master","sha":"5f602a0529b617bc631cc3df2fe7ecd20da94dbd","user":{"login":"himelnagrana","id":1459839,"avatar_url":"https://avatars.githubusercontent.com/u/1459839?v=3","gravatar_id":"","url":"https://api.github.com/users/himelnagrana","html_url":"https://github.com/himelnagrana","followers_url":"https://api.github.com/users/himelnagrana/followers","following_url":"https://api.github.com/users/himelnagrana/following{/other_user}","gists_url":"https://api.github.com/users/himelnagrana/gists{/gist_id}","starred_url":"https://api.github.com/users/himelnagrana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/himelnagrana/subscriptions","organizations_url":"https://api.github.com/users/himelnagrana/orgs","repos_url":"https://api.github.com/users/himelnagrana/repos","events_url":"https://api.github.com/users/himelnagrana/events{/privacy}","received_events_url":"https://api.github.com/users/himelnagrana/received_events","type":"User","site_admin":false},"repo":{"id":31751117,"name":"DowntimeMonitor","full_name":"himelnagrana/DowntimeMonitor","owner":{"login":"himelnagrana","id":1459839,"avatar_url":"https://avatars.githubusercontent.com/u/1459839?v=3","gravatar_id":"","url":"https://api.github.com/users/himelnagrana","html_url":"https://github.com/himelnagrana","followers_url":"https://api.github.com/users/himelnagrana/followers","following_url":"https://api.github.com/users/himelnagrana/following{/other_user}","gists_url":"https://api.github.com/users/himelnagrana/gists{/gist_id}","starred_url":"https://api.github.com/users/himelnagrana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/himelnagrana/subscriptions","organizations_url":"https://api.github.com/users/himelnagrana/orgs","repos_url":"https://api.github.com/users/himelnagrana/repos","events_url":"https://api.github.com/users/himelnagrana/events{/privacy}","received_events_url":"https://api.github.com/users/himelnagrana/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/himelnagrana/DowntimeMonitor","description":"JSON endpoint for Geckoboard.com custom Monitor widget","fork":true,"url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor","forks_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/forks","keys_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/teams","hooks_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/hooks","issue_events_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/issues/events{/number}","events_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/events","assignees_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/assignees{/user}","branches_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/branches{/branch}","tags_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/tags","blobs_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/statuses/{sha}","languages_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/languages","stargazers_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/stargazers","contributors_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/contributors","subscribers_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/subscribers","subscription_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/subscription","commits_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/contents/{+path}","compare_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/merges","archive_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/downloads","issues_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/issues{/number}","pulls_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/pulls{/number}","milestones_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/milestones{/number}","notifications_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/labels{/name}","releases_url":"https://api.github.com/repos/himelnagrana/DowntimeMonitor/releases{/id}","created_at":"2015-03-06T03:39:55Z","updated_at":"2015-03-06T03:43:06Z","pushed_at":"2015-03-06T03:43:06Z","git_url":"git://github.com/himelnagrana/DowntimeMonitor.git","ssh_url":"git@github.com:himelnagrana/DowntimeMonitor.git","clone_url":"https://github.com/himelnagrana/DowntimeMonitor.git","svn_url":"https://github.com/himelnagrana/DowntimeMonitor","homepage":"","size":86,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"SpartzOSS:master","ref":"master","sha":"c07043aa0aeae03ea660a8e3e63bfe96a405e5e4","user":{"login":"SpartzOSS","id":6233883,"avatar_url":"https://avatars.githubusercontent.com/u/6233883?v=3","gravatar_id":"","url":"https://api.github.com/users/SpartzOSS","html_url":"https://github.com/SpartzOSS","followers_url":"https://api.github.com/users/SpartzOSS/followers","following_url":"https://api.github.com/users/SpartzOSS/following{/other_user}","gists_url":"https://api.github.com/users/SpartzOSS/gists{/gist_id}","starred_url":"https://api.github.com/users/SpartzOSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpartzOSS/subscriptions","organizations_url":"https://api.github.com/users/SpartzOSS/orgs","repos_url":"https://api.github.com/users/SpartzOSS/repos","events_url":"https://api.github.com/users/SpartzOSS/events{/privacy}","received_events_url":"https://api.github.com/users/SpartzOSS/received_events","type":"User","site_admin":false},"repo":{"id":17761895,"name":"DowntimeMonitor","full_name":"SpartzOSS/DowntimeMonitor","owner":{"login":"SpartzOSS","id":6233883,"avatar_url":"https://avatars.githubusercontent.com/u/6233883?v=3","gravatar_id":"","url":"https://api.github.com/users/SpartzOSS","html_url":"https://github.com/SpartzOSS","followers_url":"https://api.github.com/users/SpartzOSS/followers","following_url":"https://api.github.com/users/SpartzOSS/following{/other_user}","gists_url":"https://api.github.com/users/SpartzOSS/gists{/gist_id}","starred_url":"https://api.github.com/users/SpartzOSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpartzOSS/subscriptions","organizations_url":"https://api.github.com/users/SpartzOSS/orgs","repos_url":"https://api.github.com/users/SpartzOSS/repos","events_url":"https://api.github.com/users/SpartzOSS/events{/privacy}","received_events_url":"https://api.github.com/users/SpartzOSS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SpartzOSS/DowntimeMonitor","description":"JSON endpoint for Geckoboard.com custom Monitor widget","fork":true,"url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor","forks_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/forks","keys_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/teams","hooks_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/hooks","issue_events_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/issues/events{/number}","events_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/events","assignees_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/assignees{/user}","branches_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/branches{/branch}","tags_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/tags","blobs_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/statuses/{sha}","languages_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/languages","stargazers_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/stargazers","contributors_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/contributors","subscribers_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/subscribers","subscription_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/subscription","commits_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/contents/{+path}","compare_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/merges","archive_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/downloads","issues_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/issues{/number}","pulls_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/pulls{/number}","milestones_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/milestones{/number}","notifications_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/labels{/name}","releases_url":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/releases{/id}","created_at":"2014-03-14T22:08:15Z","updated_at":"2014-07-29T22:22:58Z","pushed_at":"2015-03-09T14:12:29Z","git_url":"git://github.com/SpartzOSS/DowntimeMonitor.git","ssh_url":"git@github.com:SpartzOSS/DowntimeMonitor.git","clone_url":"https://github.com/SpartzOSS/DowntimeMonitor.git","svn_url":"https://github.com/SpartzOSS/DowntimeMonitor","homepage":"","size":177,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/pulls/2"},"html":{"href":"https://github.com/SpartzOSS/DowntimeMonitor/pull/2"},"issue":{"href":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/issues/2"},"comments":{"href":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/SpartzOSS/DowntimeMonitor/statuses/5f602a0529b617bc631cc3df2fe7ecd20da94dbd"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"SpartzOSS","id":6233883,"avatar_url":"https://avatars.githubusercontent.com/u/6233883?v=3","gravatar_id":"","url":"https://api.github.com/users/SpartzOSS","html_url":"https://github.com/SpartzOSS","followers_url":"https://api.github.com/users/SpartzOSS/followers","following_url":"https://api.github.com/users/SpartzOSS/following{/other_user}","gists_url":"https://api.github.com/users/SpartzOSS/gists{/gist_id}","starred_url":"https://api.github.com/users/SpartzOSS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpartzOSS/subscriptions","organizations_url":"https://api.github.com/users/SpartzOSS/orgs","repos_url":"https://api.github.com/users/SpartzOSS/repos","events_url":"https://api.github.com/users/SpartzOSS/events{/privacy}","received_events_url":"https://api.github.com/users/SpartzOSS/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":8,"deletions":1,"changed_files":1}}