{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/comments/59356348","id":59356348,"diff_hunk":"@@ -0,0 +1,67 @@\n+class ManualAndSectionsRedirecter\n+  def initialize(args)\n+    @publishing_api = SpecialistPublisher.services(:publishing_api)\n+    @logger = args[:logger] || STDOUT","path":"lib/manual_and_sections_redirecter.rb","position":4,"original_position":4,"commit_id":"a1624f347e0e964927ea3ad71b30b4d696641582","original_commit_id":"a1624f347e0e964927ea3ad71b30b4d696641582","user":{"login":"tuzz","id":892251,"avatar_url":"https://avatars.githubusercontent.com/u/892251?v=3","gravatar_id":"","url":"https://api.github.com/users/tuzz","html_url":"https://github.com/tuzz","followers_url":"https://api.github.com/users/tuzz/followers","following_url":"https://api.github.com/users/tuzz/following{/other_user}","gists_url":"https://api.github.com/users/tuzz/gists{/gist_id}","starred_url":"https://api.github.com/users/tuzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuzz/subscriptions","organizations_url":"https://api.github.com/users/tuzz/orgs","repos_url":"https://api.github.com/users/tuzz/repos","events_url":"https://api.github.com/users/tuzz/events{/privacy}","received_events_url":"https://api.github.com/users/tuzz/received_events","type":"User","site_admin":false},"body":"Is the logger injected solely to clean up the output when running tests. I think there's a more RSpec way of doing this which is to wrap calls to this class in `expect { ... }.to output.to_stdout`. Just a thought.","created_at":"2016-04-12T10:52:52Z","updated_at":"2016-04-12T10:52:52Z","html_url":"https://github.com/alphagov/specialist-publisher-rebuild/pull/702#discussion_r59356348","pull_request_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/702","_links":{"self":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/comments/59356348"},"html":{"href":"https://github.com/alphagov/specialist-publisher-rebuild/pull/702#discussion_r59356348"},"pull_request":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/702"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/702","id":66000635,"html_url":"https://github.com/alphagov/specialist-publisher-rebuild/pull/702","diff_url":"https://github.com/alphagov/specialist-publisher-rebuild/pull/702.diff","patch_url":"https://github.com/alphagov/specialist-publisher-rebuild/pull/702.patch","issue_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/702","number":702,"state":"open","locked":false,"title":"Redirect a manual and sections using Publishing API V2","user":{"login":"benilovj","id":23801,"avatar_url":"https://avatars.githubusercontent.com/u/23801?v=3","gravatar_id":"","url":"https://api.github.com/users/benilovj","html_url":"https://github.com/benilovj","followers_url":"https://api.github.com/users/benilovj/followers","following_url":"https://api.github.com/users/benilovj/following{/other_user}","gists_url":"https://api.github.com/users/benilovj/gists{/gist_id}","starred_url":"https://api.github.com/users/benilovj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benilovj/subscriptions","organizations_url":"https://api.github.com/users/benilovj/orgs","repos_url":"https://api.github.com/users/benilovj/repos","events_url":"https://api.github.com/users/benilovj/events{/privacy}","received_events_url":"https://api.github.com/users/benilovj/received_events","type":"User","site_admin":false},"body":"This PR was originally raised here: https://github.com/alphagov/specialist-publisher/pull/679\r\n\r\n","created_at":"2016-04-11T14:15:20Z","updated_at":"2016-04-12T10:52:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3d2b685120ef9031a994a2e91d678950f773c21","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/702/commits","review_comments_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/702/comments","review_comment_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/702/comments","statuses_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/statuses/a1624f347e0e964927ea3ad71b30b4d696641582","head":{"label":"alphagov:redirect-manuals-and-sections-v2","ref":"redirect-manuals-and-sections-v2","sha":"a1624f347e0e964927ea3ad71b30b4d696641582","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":55792443,"name":"specialist-publisher-rebuild","full_name":"alphagov/specialist-publisher-rebuild","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/specialist-publisher-rebuild","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild","forks_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/forks","keys_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/teams","hooks_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/hooks","issue_events_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/events","assignees_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/tags","blobs_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/languages","stargazers_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/stargazers","contributors_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/contributors","subscribers_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/subscribers","subscription_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/subscription","commits_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/merges","archive_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/downloads","issues_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/deployments","created_at":"2016-04-08T16:10:36Z","updated_at":"2016-04-09T10:12:50Z","pushed_at":"2016-04-12T10:42:19Z","git_url":"git://github.com/alphagov/specialist-publisher-rebuild.git","ssh_url":"git@github.com:alphagov/specialist-publisher-rebuild.git","clone_url":"https://github.com/alphagov/specialist-publisher-rebuild.git","svn_url":"https://github.com/alphagov/specialist-publisher-rebuild","homepage":null,"size":5175,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"50ddb3311fca5a97110d24a0d0b3cd12d0d55844","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":55792443,"name":"specialist-publisher-rebuild","full_name":"alphagov/specialist-publisher-rebuild","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/specialist-publisher-rebuild","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild","forks_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/forks","keys_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/teams","hooks_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/hooks","issue_events_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/events","assignees_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/tags","blobs_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/languages","stargazers_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/stargazers","contributors_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/contributors","subscribers_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/subscribers","subscription_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/subscription","commits_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/merges","archive_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/downloads","issues_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/deployments","created_at":"2016-04-08T16:10:36Z","updated_at":"2016-04-09T10:12:50Z","pushed_at":"2016-04-12T10:42:19Z","git_url":"git://github.com/alphagov/specialist-publisher-rebuild.git","ssh_url":"git@github.com:alphagov/specialist-publisher-rebuild.git","clone_url":"https://github.com/alphagov/specialist-publisher-rebuild.git","svn_url":"https://github.com/alphagov/specialist-publisher-rebuild","homepage":null,"size":5175,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/702"},"html":{"href":"https://github.com/alphagov/specialist-publisher-rebuild/pull/702"},"issue":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/702"},"comments":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/issues/702/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/702/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/pulls/702/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/specialist-publisher-rebuild/statuses/a1624f347e0e964927ea3ad71b30b4d696641582"}}}}