{"action":"created","comment":{"url":"https://api.github.com/repos/thredded/thredded/pulls/comments/63435697","id":63435697,"diff_hunk":"@@ -2,7 +2,8 @@\n Thredded::Engine.routes.draw do\n   resource :theme_preview, only: [:show], path: 'theme-preview' if %w(development test).include? Rails.env\n \n-  page_constraint = { page: /[1-9]\\d*/ }\n+  positive_int = /[1-9]\\d*/\n+  page_constraint = { page: positive_int }","path":"config/routes.rb","position":6,"original_position":6,"commit_id":"101ec8ccd57165e905710015fc0161b04c0bc5f7","original_commit_id":"101ec8ccd57165e905710015fc0161b04c0bc5f7","user":{"login":"jayroh","id":28194,"avatar_url":"https://avatars.githubusercontent.com/u/28194?v=3","gravatar_id":"","url":"https://api.github.com/users/jayroh","html_url":"https://github.com/jayroh","followers_url":"https://api.github.com/users/jayroh/followers","following_url":"https://api.github.com/users/jayroh/following{/other_user}","gists_url":"https://api.github.com/users/jayroh/gists{/gist_id}","starred_url":"https://api.github.com/users/jayroh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayroh/subscriptions","organizations_url":"https://api.github.com/users/jayroh/orgs","repos_url":"https://api.github.com/users/jayroh/repos","events_url":"https://api.github.com/users/jayroh/events{/privacy}","received_events_url":"https://api.github.com/users/jayroh/received_events","type":"User","site_admin":false},"body":"love this","created_at":"2016-05-16T22:16:28Z","updated_at":"2016-05-16T22:16:28Z","html_url":"https://github.com/thredded/thredded/pull/301#discussion_r63435697","pull_request_url":"https://api.github.com/repos/thredded/thredded/pulls/301","_links":{"self":{"href":"https://api.github.com/repos/thredded/thredded/pulls/comments/63435697"},"html":{"href":"https://github.com/thredded/thredded/pull/301#discussion_r63435697"},"pull_request":{"href":"https://api.github.com/repos/thredded/thredded/pulls/301"}}},"pull_request":{"url":"https://api.github.com/repos/thredded/thredded/pulls/301","id":70267154,"html_url":"https://github.com/thredded/thredded/pull/301","diff_url":"https://github.com/thredded/thredded/pull/301.diff","patch_url":"https://github.com/thredded/thredded/pull/301.patch","issue_url":"https://api.github.com/repos/thredded/thredded/issues/301","number":301,"state":"open","locked":false,"title":"Permalink URLs for posts and private posts","user":{"login":"glebm","id":216339,"avatar_url":"https://avatars.githubusercontent.com/u/216339?v=3","gravatar_id":"","url":"https://api.github.com/users/glebm","html_url":"https://github.com/glebm","followers_url":"https://api.github.com/users/glebm/followers","following_url":"https://api.github.com/users/glebm/following{/other_user}","gists_url":"https://api.github.com/users/glebm/gists{/gist_id}","starred_url":"https://api.github.com/users/glebm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glebm/subscriptions","organizations_url":"https://api.github.com/users/glebm/orgs","repos_url":"https://api.github.com/users/glebm/repos","events_url":"https://api.github.com/users/glebm/events{/privacy}","received_events_url":"https://api.github.com/users/glebm/received_events","type":"User","site_admin":false},"body":"Currently we send emails with the URL to the page of the topic where the\r\npost is at. However, when posts are deleted the page may change.\r\n\r\nThis introduces permalinks for posts and private posts that always\r\nredirect to the correct page.","created_at":"2016-05-16T21:46:23Z","updated_at":"2016-05-16T22:16:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67e22470fa05020311557d1092f3538cb845704c","assignee":{"login":"jayroh","id":28194,"avatar_url":"https://avatars.githubusercontent.com/u/28194?v=3","gravatar_id":"","url":"https://api.github.com/users/jayroh","html_url":"https://github.com/jayroh","followers_url":"https://api.github.com/users/jayroh/followers","following_url":"https://api.github.com/users/jayroh/following{/other_user}","gists_url":"https://api.github.com/users/jayroh/gists{/gist_id}","starred_url":"https://api.github.com/users/jayroh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayroh/subscriptions","organizations_url":"https://api.github.com/users/jayroh/orgs","repos_url":"https://api.github.com/users/jayroh/repos","events_url":"https://api.github.com/users/jayroh/events{/privacy}","received_events_url":"https://api.github.com/users/jayroh/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/thredded/thredded/milestones/8","html_url":"https://github.com/thredded/thredded/milestones/v0.4.0","labels_url":"https://api.github.com/repos/thredded/thredded/milestones/8/labels","id":1746631,"number":8,"title":"v0.4.0","description":"","creator":{"login":"glebm","id":216339,"avatar_url":"https://avatars.githubusercontent.com/u/216339?v=3","gravatar_id":"","url":"https://api.github.com/users/glebm","html_url":"https://github.com/glebm","followers_url":"https://api.github.com/users/glebm/followers","following_url":"https://api.github.com/users/glebm/following{/other_user}","gists_url":"https://api.github.com/users/glebm/gists{/gist_id}","starred_url":"https://api.github.com/users/glebm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glebm/subscriptions","organizations_url":"https://api.github.com/users/glebm/orgs","repos_url":"https://api.github.com/users/glebm/repos","events_url":"https://api.github.com/users/glebm/events{/privacy}","received_events_url":"https://api.github.com/users/glebm/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2016-05-04T03:41:43Z","updated_at":"2016-05-16T21:46:23Z","due_on":"2016-05-17T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/thredded/thredded/pulls/301/commits","review_comments_url":"https://api.github.com/repos/thredded/thredded/pulls/301/comments","review_comment_url":"https://api.github.com/repos/thredded/thredded/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thredded/thredded/issues/301/comments","statuses_url":"https://api.github.com/repos/thredded/thredded/statuses/101ec8ccd57165e905710015fc0161b04c0bc5f7","head":{"label":"thredded:permalinks","ref":"permalinks","sha":"101ec8ccd57165e905710015fc0161b04c0bc5f7","user":{"login":"thredded","id":14218084,"avatar_url":"https://avatars.githubusercontent.com/u/14218084?v=3","gravatar_id":"","url":"https://api.github.com/users/thredded","html_url":"https://github.com/thredded","followers_url":"https://api.github.com/users/thredded/followers","following_url":"https://api.github.com/users/thredded/following{/other_user}","gists_url":"https://api.github.com/users/thredded/gists{/gist_id}","starred_url":"https://api.github.com/users/thredded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thredded/subscriptions","organizations_url":"https://api.github.com/users/thredded/orgs","repos_url":"https://api.github.com/users/thredded/repos","events_url":"https://api.github.com/users/thredded/events{/privacy}","received_events_url":"https://api.github.com/users/thredded/received_events","type":"Organization","site_admin":false},"repo":{"id":9949492,"name":"thredded","full_name":"thredded/thredded","owner":{"login":"thredded","id":14218084,"avatar_url":"https://avatars.githubusercontent.com/u/14218084?v=3","gravatar_id":"","url":"https://api.github.com/users/thredded","html_url":"https://github.com/thredded","followers_url":"https://api.github.com/users/thredded/followers","following_url":"https://api.github.com/users/thredded/following{/other_user}","gists_url":"https://api.github.com/users/thredded/gists{/gist_id}","starred_url":"https://api.github.com/users/thredded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thredded/subscriptions","organizations_url":"https://api.github.com/users/thredded/orgs","repos_url":"https://api.github.com/users/thredded/repos","events_url":"https://api.github.com/users/thredded/events{/privacy}","received_events_url":"https://api.github.com/users/thredded/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thredded/thredded","description":"The best Rails forums engine ever.","fork":false,"url":"https://api.github.com/repos/thredded/thredded","forks_url":"https://api.github.com/repos/thredded/thredded/forks","keys_url":"https://api.github.com/repos/thredded/thredded/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thredded/thredded/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thredded/thredded/teams","hooks_url":"https://api.github.com/repos/thredded/thredded/hooks","issue_events_url":"https://api.github.com/repos/thredded/thredded/issues/events{/number}","events_url":"https://api.github.com/repos/thredded/thredded/events","assignees_url":"https://api.github.com/repos/thredded/thredded/assignees{/user}","branches_url":"https://api.github.com/repos/thredded/thredded/branches{/branch}","tags_url":"https://api.github.com/repos/thredded/thredded/tags","blobs_url":"https://api.github.com/repos/thredded/thredded/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thredded/thredded/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thredded/thredded/git/refs{/sha}","trees_url":"https://api.github.com/repos/thredded/thredded/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thredded/thredded/statuses/{sha}","languages_url":"https://api.github.com/repos/thredded/thredded/languages","stargazers_url":"https://api.github.com/repos/thredded/thredded/stargazers","contributors_url":"https://api.github.com/repos/thredded/thredded/contributors","subscribers_url":"https://api.github.com/repos/thredded/thredded/subscribers","subscription_url":"https://api.github.com/repos/thredded/thredded/subscription","commits_url":"https://api.github.com/repos/thredded/thredded/commits{/sha}","git_commits_url":"https://api.github.com/repos/thredded/thredded/git/commits{/sha}","comments_url":"https://api.github.com/repos/thredded/thredded/comments{/number}","issue_comment_url":"https://api.github.com/repos/thredded/thredded/issues/comments{/number}","contents_url":"https://api.github.com/repos/thredded/thredded/contents/{+path}","compare_url":"https://api.github.com/repos/thredded/thredded/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thredded/thredded/merges","archive_url":"https://api.github.com/repos/thredded/thredded/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thredded/thredded/downloads","issues_url":"https://api.github.com/repos/thredded/thredded/issues{/number}","pulls_url":"https://api.github.com/repos/thredded/thredded/pulls{/number}","milestones_url":"https://api.github.com/repos/thredded/thredded/milestones{/number}","notifications_url":"https://api.github.com/repos/thredded/thredded/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thredded/thredded/labels{/name}","releases_url":"https://api.github.com/repos/thredded/thredded/releases{/id}","deployments_url":"https://api.github.com/repos/thredded/thredded/deployments","created_at":"2013-05-09T01:17:41Z","updated_at":"2016-05-15T14:08:21Z","pushed_at":"2016-05-16T21:46:24Z","git_url":"git://github.com/thredded/thredded.git","ssh_url":"git@github.com:thredded/thredded.git","clone_url":"https://github.com/thredded/thredded.git","svn_url":"https://github.com/thredded/thredded","homepage":"https://thredded.org","size":1967,"stargazers_count":357,"watchers_count":357,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":32,"forks":38,"open_issues":32,"watchers":357,"default_branch":"master"}},"base":{"label":"thredded:master","ref":"master","sha":"13a4e24d2e1f48338e36e89c020953763a606a9a","user":{"login":"thredded","id":14218084,"avatar_url":"https://avatars.githubusercontent.com/u/14218084?v=3","gravatar_id":"","url":"https://api.github.com/users/thredded","html_url":"https://github.com/thredded","followers_url":"https://api.github.com/users/thredded/followers","following_url":"https://api.github.com/users/thredded/following{/other_user}","gists_url":"https://api.github.com/users/thredded/gists{/gist_id}","starred_url":"https://api.github.com/users/thredded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thredded/subscriptions","organizations_url":"https://api.github.com/users/thredded/orgs","repos_url":"https://api.github.com/users/thredded/repos","events_url":"https://api.github.com/users/thredded/events{/privacy}","received_events_url":"https://api.github.com/users/thredded/received_events","type":"Organization","site_admin":false},"repo":{"id":9949492,"name":"thredded","full_name":"thredded/thredded","owner":{"login":"thredded","id":14218084,"avatar_url":"https://avatars.githubusercontent.com/u/14218084?v=3","gravatar_id":"","url":"https://api.github.com/users/thredded","html_url":"https://github.com/thredded","followers_url":"https://api.github.com/users/thredded/followers","following_url":"https://api.github.com/users/thredded/following{/other_user}","gists_url":"https://api.github.com/users/thredded/gists{/gist_id}","starred_url":"https://api.github.com/users/thredded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thredded/subscriptions","organizations_url":"https://api.github.com/users/thredded/orgs","repos_url":"https://api.github.com/users/thredded/repos","events_url":"https://api.github.com/users/thredded/events{/privacy}","received_events_url":"https://api.github.com/users/thredded/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thredded/thredded","description":"The best Rails forums engine ever.","fork":false,"url":"https://api.github.com/repos/thredded/thredded","forks_url":"https://api.github.com/repos/thredded/thredded/forks","keys_url":"https://api.github.com/repos/thredded/thredded/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thredded/thredded/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thredded/thredded/teams","hooks_url":"https://api.github.com/repos/thredded/thredded/hooks","issue_events_url":"https://api.github.com/repos/thredded/thredded/issues/events{/number}","events_url":"https://api.github.com/repos/thredded/thredded/events","assignees_url":"https://api.github.com/repos/thredded/thredded/assignees{/user}","branches_url":"https://api.github.com/repos/thredded/thredded/branches{/branch}","tags_url":"https://api.github.com/repos/thredded/thredded/tags","blobs_url":"https://api.github.com/repos/thredded/thredded/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thredded/thredded/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thredded/thredded/git/refs{/sha}","trees_url":"https://api.github.com/repos/thredded/thredded/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thredded/thredded/statuses/{sha}","languages_url":"https://api.github.com/repos/thredded/thredded/languages","stargazers_url":"https://api.github.com/repos/thredded/thredded/stargazers","contributors_url":"https://api.github.com/repos/thredded/thredded/contributors","subscribers_url":"https://api.github.com/repos/thredded/thredded/subscribers","subscription_url":"https://api.github.com/repos/thredded/thredded/subscription","commits_url":"https://api.github.com/repos/thredded/thredded/commits{/sha}","git_commits_url":"https://api.github.com/repos/thredded/thredded/git/commits{/sha}","comments_url":"https://api.github.com/repos/thredded/thredded/comments{/number}","issue_comment_url":"https://api.github.com/repos/thredded/thredded/issues/comments{/number}","contents_url":"https://api.github.com/repos/thredded/thredded/contents/{+path}","compare_url":"https://api.github.com/repos/thredded/thredded/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thredded/thredded/merges","archive_url":"https://api.github.com/repos/thredded/thredded/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thredded/thredded/downloads","issues_url":"https://api.github.com/repos/thredded/thredded/issues{/number}","pulls_url":"https://api.github.com/repos/thredded/thredded/pulls{/number}","milestones_url":"https://api.github.com/repos/thredded/thredded/milestones{/number}","notifications_url":"https://api.github.com/repos/thredded/thredded/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thredded/thredded/labels{/name}","releases_url":"https://api.github.com/repos/thredded/thredded/releases{/id}","deployments_url":"https://api.github.com/repos/thredded/thredded/deployments","created_at":"2013-05-09T01:17:41Z","updated_at":"2016-05-15T14:08:21Z","pushed_at":"2016-05-16T21:46:24Z","git_url":"git://github.com/thredded/thredded.git","ssh_url":"git@github.com:thredded/thredded.git","clone_url":"https://github.com/thredded/thredded.git","svn_url":"https://github.com/thredded/thredded","homepage":"https://thredded.org","size":1967,"stargazers_count":357,"watchers_count":357,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":32,"forks":38,"open_issues":32,"watchers":357,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thredded/thredded/pulls/301"},"html":{"href":"https://github.com/thredded/thredded/pull/301"},"issue":{"href":"https://api.github.com/repos/thredded/thredded/issues/301"},"comments":{"href":"https://api.github.com/repos/thredded/thredded/issues/301/comments"},"review_comments":{"href":"https://api.github.com/repos/thredded/thredded/pulls/301/comments"},"review_comment":{"href":"https://api.github.com/repos/thredded/thredded/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thredded/thredded/pulls/301/commits"},"statuses":{"href":"https://api.github.com/repos/thredded/thredded/statuses/101ec8ccd57165e905710015fc0161b04c0bc5f7"}}}}