{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/whitehall/pulls/comments/90260930","pull_request_review_id":10782094,"id":90260930,"diff_hunk":"@@ -2,7 +2,12 @@ module SyncChecker\n   module Formats\n     class PublicationCheck < EditionBase\n       def root_path\n-        \"/government/publications/\"\n+        case edition_expected_in_live.publication_type","path":"lib/sync_checker/formats/publication_check.rb","position":5,"original_position":5,"commit_id":"e8a796a368772bedfdaf7928dfe1cb68da6de1ca","original_commit_id":"e8a796a368772bedfdaf7928dfe1cb68da6de1ca","user":{"login":"gpeng","id":5216,"avatar_url":"https://avatars.githubusercontent.com/u/5216?v=3","gravatar_id":"","url":"https://api.github.com/users/gpeng","html_url":"https://github.com/gpeng","followers_url":"https://api.github.com/users/gpeng/followers","following_url":"https://api.github.com/users/gpeng/following{/other_user}","gists_url":"https://api.github.com/users/gpeng/gists{/gist_id}","starred_url":"https://api.github.com/users/gpeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpeng/subscriptions","organizations_url":"https://api.github.com/users/gpeng/orgs","repos_url":"https://api.github.com/users/gpeng/repos","events_url":"https://api.github.com/users/gpeng/events{/privacy}","received_events_url":"https://api.github.com/users/gpeng/received_events","type":"User","site_admin":false},"body":"That would also support non-publication editions that are going through this and don't have `#publication_type`.","created_at":"2016-11-30T15:51:23Z","updated_at":"2016-11-30T15:51:23Z","html_url":"https://github.com/alphagov/whitehall/pull/2890#discussion_r90260930","pull_request_url":"https://api.github.com/repos/alphagov/whitehall/pulls/2890","_links":{"self":{"href":"https://api.github.com/repos/alphagov/whitehall/pulls/comments/90260930"},"html":{"href":"https://github.com/alphagov/whitehall/pull/2890#discussion_r90260930"},"pull_request":{"href":"https://api.github.com/repos/alphagov/whitehall/pulls/2890"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/whitehall/pulls/2890","id":95912925,"html_url":"https://github.com/alphagov/whitehall/pull/2890","diff_url":"https://github.com/alphagov/whitehall/pull/2890.diff","patch_url":"https://github.com/alphagov/whitehall/pull/2890.patch","issue_url":"https://api.github.com/repos/alphagov/whitehall/issues/2890","number":2890,"state":"open","locked":false,"title":"Alter root_path by PublicationType","user":{"login":"steventux","id":93511,"avatar_url":"https://avatars.githubusercontent.com/u/93511?v=3","gravatar_id":"","url":"https://api.github.com/users/steventux","html_url":"https://github.com/steventux","followers_url":"https://api.github.com/users/steventux/followers","following_url":"https://api.github.com/users/steventux/following{/other_user}","gists_url":"https://api.github.com/users/steventux/gists{/gist_id}","starred_url":"https://api.github.com/users/steventux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steventux/subscriptions","organizations_url":"https://api.github.com/users/steventux/orgs","repos_url":"https://api.github.com/users/steventux/repos","events_url":"https://api.github.com/users/steventux/events{/privacy}","received_events_url":"https://api.github.com/users/steventux/received_events","type":"User","site_admin":false},"body":"Part of https://trello.com/c/oyOq9WtM/369-9-publications-migration-implement-publishing-of-format-to-publishing-api\r\n\r\nDifferent publication types may have different routing in Whitehall,\r\nfor example `OfficialStatistics` which live under `/goverment/statistics`.\r\nReturn the correct root_path based on `PublicationType` so that we can\r\ncorrectly query the content store for a matching piece of content.","created_at":"2016-11-30T15:29:51Z","updated_at":"2016-11-30T15:51:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4ac568aee1d60199ad67bed49a79a933bfb4fa7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/whitehall/pulls/2890/commits","review_comments_url":"https://api.github.com/repos/alphagov/whitehall/pulls/2890/comments","review_comment_url":"https://api.github.com/repos/alphagov/whitehall/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/whitehall/issues/2890/comments","statuses_url":"https://api.github.com/repos/alphagov/whitehall/statuses/e8a796a368772bedfdaf7928dfe1cb68da6de1ca","head":{"label":"alphagov:alter-root-path-by-publication-type","ref":"alter-root-path-by-publication-type","sha":"e8a796a368772bedfdaf7928dfe1cb68da6de1ca","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":2416064,"name":"whitehall","full_name":"alphagov/whitehall","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/whitehall","description":"Rails application that publishes and renders most pages on www.gov.uk/government","fork":false,"url":"https://api.github.com/repos/alphagov/whitehall","forks_url":"https://api.github.com/repos/alphagov/whitehall/forks","keys_url":"https://api.github.com/repos/alphagov/whitehall/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/whitehall/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/whitehall/teams","hooks_url":"https://api.github.com/repos/alphagov/whitehall/hooks","issue_events_url":"https://api.github.com/repos/alphagov/whitehall/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/whitehall/events","assignees_url":"https://api.github.com/repos/alphagov/whitehall/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/whitehall/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/whitehall/tags","blobs_url":"https://api.github.com/repos/alphagov/whitehall/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/whitehall/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/whitehall/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/whitehall/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/whitehall/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/whitehall/languages","stargazers_url":"https://api.github.com/repos/alphagov/whitehall/stargazers","contributors_url":"https://api.github.com/repos/alphagov/whitehall/contributors","subscribers_url":"https://api.github.com/repos/alphagov/whitehall/subscribers","subscription_url":"https://api.github.com/repos/alphagov/whitehall/subscription","commits_url":"https://api.github.com/repos/alphagov/whitehall/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/whitehall/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/whitehall/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/whitehall/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/whitehall/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/whitehall/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/whitehall/merges","archive_url":"https://api.github.com/repos/alphagov/whitehall/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/whitehall/downloads","issues_url":"https://api.github.com/repos/alphagov/whitehall/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/whitehall/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/whitehall/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/whitehall/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/whitehall/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/whitehall/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/whitehall/deployments","created_at":"2011-09-19T15:10:49Z","updated_at":"2016-11-29T16:43:21Z","pushed_at":"2016-11-30T15:50:46Z","git_url":"git://github.com/alphagov/whitehall.git","ssh_url":"git@github.com:alphagov/whitehall.git","clone_url":"https://github.com/alphagov/whitehall.git","svn_url":"https://github.com/alphagov/whitehall","homepage":"","size":247866,"stargazers_count":372,"watchers_count":372,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":147,"mirror_url":null,"open_issues_count":15,"forks":147,"open_issues":15,"watchers":372,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"e11c33458dd8a18f49d88fd190d6a8d68263ba83","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":2416064,"name":"whitehall","full_name":"alphagov/whitehall","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/whitehall","description":"Rails application that publishes and renders most pages on www.gov.uk/government","fork":false,"url":"https://api.github.com/repos/alphagov/whitehall","forks_url":"https://api.github.com/repos/alphagov/whitehall/forks","keys_url":"https://api.github.com/repos/alphagov/whitehall/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/whitehall/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/whitehall/teams","hooks_url":"https://api.github.com/repos/alphagov/whitehall/hooks","issue_events_url":"https://api.github.com/repos/alphagov/whitehall/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/whitehall/events","assignees_url":"https://api.github.com/repos/alphagov/whitehall/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/whitehall/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/whitehall/tags","blobs_url":"https://api.github.com/repos/alphagov/whitehall/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/whitehall/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/whitehall/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/whitehall/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/whitehall/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/whitehall/languages","stargazers_url":"https://api.github.com/repos/alphagov/whitehall/stargazers","contributors_url":"https://api.github.com/repos/alphagov/whitehall/contributors","subscribers_url":"https://api.github.com/repos/alphagov/whitehall/subscribers","subscription_url":"https://api.github.com/repos/alphagov/whitehall/subscription","commits_url":"https://api.github.com/repos/alphagov/whitehall/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/whitehall/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/whitehall/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/whitehall/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/whitehall/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/whitehall/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/whitehall/merges","archive_url":"https://api.github.com/repos/alphagov/whitehall/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/whitehall/downloads","issues_url":"https://api.github.com/repos/alphagov/whitehall/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/whitehall/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/whitehall/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/whitehall/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/whitehall/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/whitehall/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/whitehall/deployments","created_at":"2011-09-19T15:10:49Z","updated_at":"2016-11-29T16:43:21Z","pushed_at":"2016-11-30T15:50:46Z","git_url":"git://github.com/alphagov/whitehall.git","ssh_url":"git@github.com:alphagov/whitehall.git","clone_url":"https://github.com/alphagov/whitehall.git","svn_url":"https://github.com/alphagov/whitehall","homepage":"","size":247866,"stargazers_count":372,"watchers_count":372,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":147,"mirror_url":null,"open_issues_count":15,"forks":147,"open_issues":15,"watchers":372,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/whitehall/pulls/2890"},"html":{"href":"https://github.com/alphagov/whitehall/pull/2890"},"issue":{"href":"https://api.github.com/repos/alphagov/whitehall/issues/2890"},"comments":{"href":"https://api.github.com/repos/alphagov/whitehall/issues/2890/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/whitehall/pulls/2890/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/whitehall/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/whitehall/pulls/2890/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/whitehall/statuses/e8a796a368772bedfdaf7928dfe1cb68da6de1ca"}}}}
{"actor":{"display_login":"gpeng"}}