{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/ctk85/dev-test/pulls/2","id":198532612,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NTMyNjEy","html_url":"https://github.com/ctk85/dev-test/pull/2","diff_url":"https://github.com/ctk85/dev-test/pull/2.diff","patch_url":"https://github.com/ctk85/dev-test/pull/2.patch","issue_url":"https://api.github.com/repos/ctk85/dev-test/issues/2","number":2,"state":"open","locked":false,"title":"user friendly error handling added","user":{"login":"ctk85","id":34791166,"node_id":"MDQ6VXNlcjM0NzkxMTY2","avatar_url":"https://avatars3.githubusercontent.com/u/34791166?v=4","gravatar_id":"","url":"https://api.github.com/users/ctk85","html_url":"https://github.com/ctk85","followers_url":"https://api.github.com/users/ctk85/followers","following_url":"https://api.github.com/users/ctk85/following{/other_user}","gists_url":"https://api.github.com/users/ctk85/gists{/gist_id}","starred_url":"https://api.github.com/users/ctk85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctk85/subscriptions","organizations_url":"https://api.github.com/users/ctk85/orgs","repos_url":"https://api.github.com/users/ctk85/repos","events_url":"https://api.github.com/users/ctk85/events{/privacy}","received_events_url":"https://api.github.com/users/ctk85/received_events","type":"User","site_admin":false},"body":"For this pull request I have added try/catch exception model to 'catch' any errors generated by index.php\r\nI have also added a simple bootstrap styled error page.\r\n\r\n---\r\n\r\n**Testing**\r\n\r\nIn a browser, try reloading the page a few times until an error has been thrown.\r\nTo test manaully, load localhost:8000/error.html\r\n\r\n---\r\n\r\n**Deployment steps**\r\n\r\nMerge branch `issue2` into `master`\r\n\r\nCompile assets: `./bin/node_modules/gulp`","created_at":"2018-07-01T16:48:26Z","updated_at":"2018-07-01T16:48:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ctk85/dev-test/pulls/2/commits","review_comments_url":"https://api.github.com/repos/ctk85/dev-test/pulls/2/comments","review_comment_url":"https://api.github.com/repos/ctk85/dev-test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ctk85/dev-test/issues/2/comments","statuses_url":"https://api.github.com/repos/ctk85/dev-test/statuses/b69476d8f74c4a199ebe7e0088394f4ce46bb8fd","head":{"label":"ctk85:20180701-issue2","ref":"20180701-issue2","sha":"b69476d8f74c4a199ebe7e0088394f4ce46bb8fd","user":{"login":"ctk85","id":34791166,"node_id":"MDQ6VXNlcjM0NzkxMTY2","avatar_url":"https://avatars3.githubusercontent.com/u/34791166?v=4","gravatar_id":"","url":"https://api.github.com/users/ctk85","html_url":"https://github.com/ctk85","followers_url":"https://api.github.com/users/ctk85/followers","following_url":"https://api.github.com/users/ctk85/following{/other_user}","gists_url":"https://api.github.com/users/ctk85/gists{/gist_id}","starred_url":"https://api.github.com/users/ctk85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctk85/subscriptions","organizations_url":"https://api.github.com/users/ctk85/orgs","repos_url":"https://api.github.com/users/ctk85/repos","events_url":"https://api.github.com/users/ctk85/events{/privacy}","received_events_url":"https://api.github.com/users/ctk85/received_events","type":"User","site_admin":false},"repo":{"id":139340213,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkzNDAyMTM=","name":"dev-test","full_name":"ctk85/dev-test","owner":{"login":"ctk85","id":34791166,"node_id":"MDQ6VXNlcjM0NzkxMTY2","avatar_url":"https://avatars3.githubusercontent.com/u/34791166?v=4","gravatar_id":"","url":"https://api.github.com/users/ctk85","html_url":"https://github.com/ctk85","followers_url":"https://api.github.com/users/ctk85/followers","following_url":"https://api.github.com/users/ctk85/following{/other_user}","gists_url":"https://api.github.com/users/ctk85/gists{/gist_id}","starred_url":"https://api.github.com/users/ctk85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctk85/subscriptions","organizations_url":"https://api.github.com/users/ctk85/orgs","repos_url":"https://api.github.com/users/ctk85/repos","events_url":"https://api.github.com/users/ctk85/events{/privacy}","received_events_url":"https://api.github.com/users/ctk85/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ctk85/dev-test","description":"Developer test","fork":true,"url":"https://api.github.com/repos/ctk85/dev-test","forks_url":"https://api.github.com/repos/ctk85/dev-test/forks","keys_url":"https://api.github.com/repos/ctk85/dev-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ctk85/dev-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ctk85/dev-test/teams","hooks_url":"https://api.github.com/repos/ctk85/dev-test/hooks","issue_events_url":"https://api.github.com/repos/ctk85/dev-test/issues/events{/number}","events_url":"https://api.github.com/repos/ctk85/dev-test/events","assignees_url":"https://api.github.com/repos/ctk85/dev-test/assignees{/user}","branches_url":"https://api.github.com/repos/ctk85/dev-test/branches{/branch}","tags_url":"https://api.github.com/repos/ctk85/dev-test/tags","blobs_url":"https://api.github.com/repos/ctk85/dev-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ctk85/dev-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ctk85/dev-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/ctk85/dev-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ctk85/dev-test/statuses/{sha}","languages_url":"https://api.github.com/repos/ctk85/dev-test/languages","stargazers_url":"https://api.github.com/repos/ctk85/dev-test/stargazers","contributors_url":"https://api.github.com/repos/ctk85/dev-test/contributors","subscribers_url":"https://api.github.com/repos/ctk85/dev-test/subscribers","subscription_url":"https://api.github.com/repos/ctk85/dev-test/subscription","commits_url":"https://api.github.com/repos/ctk85/dev-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/ctk85/dev-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/ctk85/dev-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/ctk85/dev-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/ctk85/dev-test/contents/{+path}","compare_url":"https://api.github.com/repos/ctk85/dev-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ctk85/dev-test/merges","archive_url":"https://api.github.com/repos/ctk85/dev-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ctk85/dev-test/downloads","issues_url":"https://api.github.com/repos/ctk85/dev-test/issues{/number}","pulls_url":"https://api.github.com/repos/ctk85/dev-test/pulls{/number}","milestones_url":"https://api.github.com/repos/ctk85/dev-test/milestones{/number}","notifications_url":"https://api.github.com/repos/ctk85/dev-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ctk85/dev-test/labels{/name}","releases_url":"https://api.github.com/repos/ctk85/dev-test/releases{/id}","deployments_url":"https://api.github.com/repos/ctk85/dev-test/deployments","created_at":"2018-07-01T15:27:36Z","updated_at":"2018-07-01T16:24:40Z","pushed_at":"2018-07-01T16:47:11Z","git_url":"git://github.com/ctk85/dev-test.git","ssh_url":"git@github.com:ctk85/dev-test.git","clone_url":"https://github.com/ctk85/dev-test.git","svn_url":"https://github.com/ctk85/dev-test","homepage":null,"size":1579,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ctk85:master","ref":"master","sha":"05b78b2cd29e6f0eedb0ed7f1712a97790e61db6","user":{"login":"ctk85","id":34791166,"node_id":"MDQ6VXNlcjM0NzkxMTY2","avatar_url":"https://avatars3.githubusercontent.com/u/34791166?v=4","gravatar_id":"","url":"https://api.github.com/users/ctk85","html_url":"https://github.com/ctk85","followers_url":"https://api.github.com/users/ctk85/followers","following_url":"https://api.github.com/users/ctk85/following{/other_user}","gists_url":"https://api.github.com/users/ctk85/gists{/gist_id}","starred_url":"https://api.github.com/users/ctk85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctk85/subscriptions","organizations_url":"https://api.github.com/users/ctk85/orgs","repos_url":"https://api.github.com/users/ctk85/repos","events_url":"https://api.github.com/users/ctk85/events{/privacy}","received_events_url":"https://api.github.com/users/ctk85/received_events","type":"User","site_admin":false},"repo":{"id":139340213,"node_id":"MDEwOlJlcG9zaXRvcnkxMzkzNDAyMTM=","name":"dev-test","full_name":"ctk85/dev-test","owner":{"login":"ctk85","id":34791166,"node_id":"MDQ6VXNlcjM0NzkxMTY2","avatar_url":"https://avatars3.githubusercontent.com/u/34791166?v=4","gravatar_id":"","url":"https://api.github.com/users/ctk85","html_url":"https://github.com/ctk85","followers_url":"https://api.github.com/users/ctk85/followers","following_url":"https://api.github.com/users/ctk85/following{/other_user}","gists_url":"https://api.github.com/users/ctk85/gists{/gist_id}","starred_url":"https://api.github.com/users/ctk85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctk85/subscriptions","organizations_url":"https://api.github.com/users/ctk85/orgs","repos_url":"https://api.github.com/users/ctk85/repos","events_url":"https://api.github.com/users/ctk85/events{/privacy}","received_events_url":"https://api.github.com/users/ctk85/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ctk85/dev-test","description":"Developer test","fork":true,"url":"https://api.github.com/repos/ctk85/dev-test","forks_url":"https://api.github.com/repos/ctk85/dev-test/forks","keys_url":"https://api.github.com/repos/ctk85/dev-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ctk85/dev-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ctk85/dev-test/teams","hooks_url":"https://api.github.com/repos/ctk85/dev-test/hooks","issue_events_url":"https://api.github.com/repos/ctk85/dev-test/issues/events{/number}","events_url":"https://api.github.com/repos/ctk85/dev-test/events","assignees_url":"https://api.github.com/repos/ctk85/dev-test/assignees{/user}","branches_url":"https://api.github.com/repos/ctk85/dev-test/branches{/branch}","tags_url":"https://api.github.com/repos/ctk85/dev-test/tags","blobs_url":"https://api.github.com/repos/ctk85/dev-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ctk85/dev-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ctk85/dev-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/ctk85/dev-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ctk85/dev-test/statuses/{sha}","languages_url":"https://api.github.com/repos/ctk85/dev-test/languages","stargazers_url":"https://api.github.com/repos/ctk85/dev-test/stargazers","contributors_url":"https://api.github.com/repos/ctk85/dev-test/contributors","subscribers_url":"https://api.github.com/repos/ctk85/dev-test/subscribers","subscription_url":"https://api.github.com/repos/ctk85/dev-test/subscription","commits_url":"https://api.github.com/repos/ctk85/dev-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/ctk85/dev-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/ctk85/dev-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/ctk85/dev-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/ctk85/dev-test/contents/{+path}","compare_url":"https://api.github.com/repos/ctk85/dev-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ctk85/dev-test/merges","archive_url":"https://api.github.com/repos/ctk85/dev-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ctk85/dev-test/downloads","issues_url":"https://api.github.com/repos/ctk85/dev-test/issues{/number}","pulls_url":"https://api.github.com/repos/ctk85/dev-test/pulls{/number}","milestones_url":"https://api.github.com/repos/ctk85/dev-test/milestones{/number}","notifications_url":"https://api.github.com/repos/ctk85/dev-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ctk85/dev-test/labels{/name}","releases_url":"https://api.github.com/repos/ctk85/dev-test/releases{/id}","deployments_url":"https://api.github.com/repos/ctk85/dev-test/deployments","created_at":"2018-07-01T15:27:36Z","updated_at":"2018-07-01T16:24:40Z","pushed_at":"2018-07-01T16:47:11Z","git_url":"git://github.com/ctk85/dev-test.git","ssh_url":"git@github.com:ctk85/dev-test.git","clone_url":"https://github.com/ctk85/dev-test.git","svn_url":"https://github.com/ctk85/dev-test","homepage":null,"size":1579,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ctk85/dev-test/pulls/2"},"html":{"href":"https://github.com/ctk85/dev-test/pull/2"},"issue":{"href":"https://api.github.com/repos/ctk85/dev-test/issues/2"},"comments":{"href":"https://api.github.com/repos/ctk85/dev-test/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/ctk85/dev-test/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/ctk85/dev-test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ctk85/dev-test/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/ctk85/dev-test/statuses/b69476d8f74c4a199ebe7e0088394f4ce46bb8fd"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":60,"deletions":11,"changed_files":3}}
{"actor":{"display_login":"ctk85"}}