{"action":"opened","number":137,"pull_request":{"url":"https://api.github.com/repos/orientation/orientation/pulls/137","id":34111772,"html_url":"https://github.com/orientation/orientation/pull/137","diff_url":"https://github.com/orientation/orientation/pull/137.diff","patch_url":"https://github.com/orientation/orientation/pull/137.patch","issue_url":"https://api.github.com/repos/orientation/orientation/issues/137","number":137,"state":"open","locked":false,"title":"Redirect to articles#new on 404","user":{"login":"olivierlacan","id":65950,"avatar_url":"https://avatars.githubusercontent.com/u/65950?v=3","gravatar_id":"","url":"https://api.github.com/users/olivierlacan","html_url":"https://github.com/olivierlacan","followers_url":"https://api.github.com/users/olivierlacan/followers","following_url":"https://api.github.com/users/olivierlacan/following{/other_user}","gists_url":"https://api.github.com/users/olivierlacan/gists{/gist_id}","starred_url":"https://api.github.com/users/olivierlacan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivierlacan/subscriptions","organizations_url":"https://api.github.com/users/olivierlacan/orgs","repos_url":"https://api.github.com/users/olivierlacan/repos","events_url":"https://api.github.com/users/olivierlacan/events{/privacy}","received_events_url":"https://api.github.com/users/olivierlacan/received_events","type":"User","site_admin":false},"body":"Grab the slug and titleize it to extract a potential title and\r\nencourage people to write articles that don't already exists.\r\n\r\nThis makes sense now that it's unlikely that 404 will happen due to\r\noudated slugs since we retain slug history and redirection of old\r\nslugs to new ones through FriendlyId.","created_at":"2015-04-25T19:39:21Z","updated_at":"2015-04-25T19:39:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/orientation/orientation/pulls/137/commits","review_comments_url":"https://api.github.com/repos/orientation/orientation/pulls/137/comments","review_comment_url":"https://api.github.com/repos/orientation/orientation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/orientation/orientation/issues/137/comments","statuses_url":"https://api.github.com/repos/orientation/orientation/statuses/bb0e62724381061bdc4e17c5fdcccbb818c3eea9","head":{"label":"orientation:redirect-to-new-on-404","ref":"redirect-to-new-on-404","sha":"bb0e62724381061bdc4e17c5fdcccbb818c3eea9","user":{"login":"orientation","id":11703432,"avatar_url":"https://avatars.githubusercontent.com/u/11703432?v=3","gravatar_id":"","url":"https://api.github.com/users/orientation","html_url":"https://github.com/orientation","followers_url":"https://api.github.com/users/orientation/followers","following_url":"https://api.github.com/users/orientation/following{/other_user}","gists_url":"https://api.github.com/users/orientation/gists{/gist_id}","starred_url":"https://api.github.com/users/orientation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orientation/subscriptions","organizations_url":"https://api.github.com/users/orientation/orgs","repos_url":"https://api.github.com/users/orientation/repos","events_url":"https://api.github.com/users/orientation/events{/privacy}","received_events_url":"https://api.github.com/users/orientation/received_events","type":"Organization","site_admin":false},"repo":{"id":6251961,"name":"orientation","full_name":"orientation/orientation","owner":{"login":"orientation","id":11703432,"avatar_url":"https://avatars.githubusercontent.com/u/11703432?v=3","gravatar_id":"","url":"https://api.github.com/users/orientation","html_url":"https://github.com/orientation","followers_url":"https://api.github.com/users/orientation/followers","following_url":"https://api.github.com/users/orientation/following{/other_user}","gists_url":"https://api.github.com/users/orientation/gists{/gist_id}","starred_url":"https://api.github.com/users/orientation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orientation/subscriptions","organizations_url":"https://api.github.com/users/orientation/orgs","repos_url":"https://api.github.com/users/orientation/repos","events_url":"https://api.github.com/users/orientation/events{/privacy}","received_events_url":"https://api.github.com/users/orientation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/orientation/orientation","description":"Fight information rot.","fork":false,"url":"https://api.github.com/repos/orientation/orientation","forks_url":"https://api.github.com/repos/orientation/orientation/forks","keys_url":"https://api.github.com/repos/orientation/orientation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/orientation/orientation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/orientation/orientation/teams","hooks_url":"https://api.github.com/repos/orientation/orientation/hooks","issue_events_url":"https://api.github.com/repos/orientation/orientation/issues/events{/number}","events_url":"https://api.github.com/repos/orientation/orientation/events","assignees_url":"https://api.github.com/repos/orientation/orientation/assignees{/user}","branches_url":"https://api.github.com/repos/orientation/orientation/branches{/branch}","tags_url":"https://api.github.com/repos/orientation/orientation/tags","blobs_url":"https://api.github.com/repos/orientation/orientation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/orientation/orientation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/orientation/orientation/git/refs{/sha}","trees_url":"https://api.github.com/repos/orientation/orientation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/orientation/orientation/statuses/{sha}","languages_url":"https://api.github.com/repos/orientation/orientation/languages","stargazers_url":"https://api.github.com/repos/orientation/orientation/stargazers","contributors_url":"https://api.github.com/repos/orientation/orientation/contributors","subscribers_url":"https://api.github.com/repos/orientation/orientation/subscribers","subscription_url":"https://api.github.com/repos/orientation/orientation/subscription","commits_url":"https://api.github.com/repos/orientation/orientation/commits{/sha}","git_commits_url":"https://api.github.com/repos/orientation/orientation/git/commits{/sha}","comments_url":"https://api.github.com/repos/orientation/orientation/comments{/number}","issue_comment_url":"https://api.github.com/repos/orientation/orientation/issues/comments{/number}","contents_url":"https://api.github.com/repos/orientation/orientation/contents/{+path}","compare_url":"https://api.github.com/repos/orientation/orientation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/orientation/orientation/merges","archive_url":"https://api.github.com/repos/orientation/orientation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/orientation/orientation/downloads","issues_url":"https://api.github.com/repos/orientation/orientation/issues{/number}","pulls_url":"https://api.github.com/repos/orientation/orientation/pulls{/number}","milestones_url":"https://api.github.com/repos/orientation/orientation/milestones{/number}","notifications_url":"https://api.github.com/repos/orientation/orientation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/orientation/orientation/labels{/name}","releases_url":"https://api.github.com/repos/orientation/orientation/releases{/id}","created_at":"2012-10-16T21:25:35Z","updated_at":"2015-04-22T22:46:45Z","pushed_at":"2015-04-25T19:29:30Z","git_url":"git://github.com/orientation/orientation.git","ssh_url":"git@github.com:orientation/orientation.git","clone_url":"https://github.com/orientation/orientation.git","svn_url":"https://github.com/orientation/orientation","homepage":"","size":8212,"stargazers_count":110,"watchers_count":110,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":22,"forks":16,"open_issues":22,"watchers":110,"default_branch":"master"}},"base":{"label":"orientation:master","ref":"master","sha":"fbeb091c95e1f586a53e4302f5e7171f85925f63","user":{"login":"orientation","id":11703432,"avatar_url":"https://avatars.githubusercontent.com/u/11703432?v=3","gravatar_id":"","url":"https://api.github.com/users/orientation","html_url":"https://github.com/orientation","followers_url":"https://api.github.com/users/orientation/followers","following_url":"https://api.github.com/users/orientation/following{/other_user}","gists_url":"https://api.github.com/users/orientation/gists{/gist_id}","starred_url":"https://api.github.com/users/orientation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orientation/subscriptions","organizations_url":"https://api.github.com/users/orientation/orgs","repos_url":"https://api.github.com/users/orientation/repos","events_url":"https://api.github.com/users/orientation/events{/privacy}","received_events_url":"https://api.github.com/users/orientation/received_events","type":"Organization","site_admin":false},"repo":{"id":6251961,"name":"orientation","full_name":"orientation/orientation","owner":{"login":"orientation","id":11703432,"avatar_url":"https://avatars.githubusercontent.com/u/11703432?v=3","gravatar_id":"","url":"https://api.github.com/users/orientation","html_url":"https://github.com/orientation","followers_url":"https://api.github.com/users/orientation/followers","following_url":"https://api.github.com/users/orientation/following{/other_user}","gists_url":"https://api.github.com/users/orientation/gists{/gist_id}","starred_url":"https://api.github.com/users/orientation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orientation/subscriptions","organizations_url":"https://api.github.com/users/orientation/orgs","repos_url":"https://api.github.com/users/orientation/repos","events_url":"https://api.github.com/users/orientation/events{/privacy}","received_events_url":"https://api.github.com/users/orientation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/orientation/orientation","description":"Fight information rot.","fork":false,"url":"https://api.github.com/repos/orientation/orientation","forks_url":"https://api.github.com/repos/orientation/orientation/forks","keys_url":"https://api.github.com/repos/orientation/orientation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/orientation/orientation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/orientation/orientation/teams","hooks_url":"https://api.github.com/repos/orientation/orientation/hooks","issue_events_url":"https://api.github.com/repos/orientation/orientation/issues/events{/number}","events_url":"https://api.github.com/repos/orientation/orientation/events","assignees_url":"https://api.github.com/repos/orientation/orientation/assignees{/user}","branches_url":"https://api.github.com/repos/orientation/orientation/branches{/branch}","tags_url":"https://api.github.com/repos/orientation/orientation/tags","blobs_url":"https://api.github.com/repos/orientation/orientation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/orientation/orientation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/orientation/orientation/git/refs{/sha}","trees_url":"https://api.github.com/repos/orientation/orientation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/orientation/orientation/statuses/{sha}","languages_url":"https://api.github.com/repos/orientation/orientation/languages","stargazers_url":"https://api.github.com/repos/orientation/orientation/stargazers","contributors_url":"https://api.github.com/repos/orientation/orientation/contributors","subscribers_url":"https://api.github.com/repos/orientation/orientation/subscribers","subscription_url":"https://api.github.com/repos/orientation/orientation/subscription","commits_url":"https://api.github.com/repos/orientation/orientation/commits{/sha}","git_commits_url":"https://api.github.com/repos/orientation/orientation/git/commits{/sha}","comments_url":"https://api.github.com/repos/orientation/orientation/comments{/number}","issue_comment_url":"https://api.github.com/repos/orientation/orientation/issues/comments{/number}","contents_url":"https://api.github.com/repos/orientation/orientation/contents/{+path}","compare_url":"https://api.github.com/repos/orientation/orientation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/orientation/orientation/merges","archive_url":"https://api.github.com/repos/orientation/orientation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/orientation/orientation/downloads","issues_url":"https://api.github.com/repos/orientation/orientation/issues{/number}","pulls_url":"https://api.github.com/repos/orientation/orientation/pulls{/number}","milestones_url":"https://api.github.com/repos/orientation/orientation/milestones{/number}","notifications_url":"https://api.github.com/repos/orientation/orientation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/orientation/orientation/labels{/name}","releases_url":"https://api.github.com/repos/orientation/orientation/releases{/id}","created_at":"2012-10-16T21:25:35Z","updated_at":"2015-04-22T22:46:45Z","pushed_at":"2015-04-25T19:29:30Z","git_url":"git://github.com/orientation/orientation.git","ssh_url":"git@github.com:orientation/orientation.git","clone_url":"https://github.com/orientation/orientation.git","svn_url":"https://github.com/orientation/orientation","homepage":"","size":8212,"stargazers_count":110,"watchers_count":110,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":22,"forks":16,"open_issues":22,"watchers":110,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/orientation/orientation/pulls/137"},"html":{"href":"https://github.com/orientation/orientation/pull/137"},"issue":{"href":"https://api.github.com/repos/orientation/orientation/issues/137"},"comments":{"href":"https://api.github.com/repos/orientation/orientation/issues/137/comments"},"review_comments":{"href":"https://api.github.com/repos/orientation/orientation/pulls/137/comments"},"review_comment":{"href":"https://api.github.com/repos/orientation/orientation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/orientation/orientation/pulls/137/commits"},"statuses":{"href":"https://api.github.com/repos/orientation/orientation/statuses/bb0e62724381061bdc4e17c5fdcccbb818c3eea9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":12,"deletions":3,"changed_files":1}}