{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls/comments/58869297","id":58869297,"diff_hunk":"@@ -88,6 +89,7 @@ def change_note_html\n   def draft_copy\n     dup.tap do |e|\n       e.change_note = nil\n+      e.change_reason_for_change = nil","path":"app/models/edition.rb","position":20,"original_position":20,"commit_id":"456a72c66b6b615a8cd33f819db3f26a40a6bd32","original_commit_id":"456a72c66b6b615a8cd33f819db3f26a40a6bd32","user":{"login":"thehenster","id":78311,"avatar_url":"https://avatars.githubusercontent.com/u/78311?v=3","gravatar_id":"","url":"https://api.github.com/users/thehenster","html_url":"https://github.com/thehenster","followers_url":"https://api.github.com/users/thehenster/followers","following_url":"https://api.github.com/users/thehenster/following{/other_user}","gists_url":"https://api.github.com/users/thehenster/gists{/gist_id}","starred_url":"https://api.github.com/users/thehenster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thehenster/subscriptions","organizations_url":"https://api.github.com/users/thehenster/orgs","repos_url":"https://api.github.com/users/thehenster/repos","events_url":"https://api.github.com/users/thehenster/events{/privacy}","received_events_url":"https://api.github.com/users/thehenster/received_events","type":"User","site_admin":false},"body":"They're no longer used. You can delete `Guide#ensure_draft_exists` and `Edition#draft_copy` along with tests for both.","created_at":"2016-04-07T13:21:28Z","updated_at":"2016-04-07T13:21:28Z","html_url":"https://github.com/alphagov/service-manual-publisher/pull/209#discussion_r58869297","pull_request_url":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls/209","_links":{"self":{"href":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls/comments/58869297"},"html":{"href":"https://github.com/alphagov/service-manual-publisher/pull/209#discussion_r58869297"},"pull_request":{"href":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls/209"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls/209","id":64460715,"html_url":"https://github.com/alphagov/service-manual-publisher/pull/209","diff_url":"https://github.com/alphagov/service-manual-publisher/pull/209.diff","patch_url":"https://github.com/alphagov/service-manual-publisher/pull/209.patch","issue_url":"https://api.github.com/repos/alphagov/service-manual-publisher/issues/209","number":209,"state":"open","locked":false,"title":"Store change history for each published guide with update_type=major","user":{"login":"AndrewVos","id":363618,"avatar_url":"https://avatars.githubusercontent.com/u/363618?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewVos","html_url":"https://github.com/AndrewVos","followers_url":"https://api.github.com/users/AndrewVos/followers","following_url":"https://api.github.com/users/AndrewVos/following{/other_user}","gists_url":"https://api.github.com/users/AndrewVos/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewVos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewVos/subscriptions","organizations_url":"https://api.github.com/users/AndrewVos/orgs","repos_url":"https://api.github.com/users/AndrewVos/repos","events_url":"https://api.github.com/users/AndrewVos/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewVos/received_events","type":"User","site_admin":false},"body":"https://trello.com/c/qzHbv9S9/181-show-change-notes-and-page-history-at-the-bottom-of-guidance-page\r\n\r\nDependent on:\r\n\r\nhttps://github.com/alphagov/government-frontend/pull/129\r\nhttps://github.com/alphagov/service-manual-publisher/pull/209\r\nhttps://github.com/alphagov/govuk-content-schemas/pull/274","created_at":"2016-03-29T12:57:06Z","updated_at":"2016-04-07T13:21:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6cecf086465f28dea75ce294ff9ae922959e5009","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls/209/commits","review_comments_url":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls/209/comments","review_comment_url":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/service-manual-publisher/issues/209/comments","statuses_url":"https://api.github.com/repos/alphagov/service-manual-publisher/statuses/456a72c66b6b615a8cd33f819db3f26a40a6bd32","head":{"label":"alphagov:store-change-history-in-guide","ref":"store-change-history-in-guide","sha":"456a72c66b6b615a8cd33f819db3f26a40a6bd32","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":43757023,"name":"service-manual-publisher","full_name":"alphagov/service-manual-publisher","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/service-manual-publisher","description":"Create and manage content for the service manual","fork":false,"url":"https://api.github.com/repos/alphagov/service-manual-publisher","forks_url":"https://api.github.com/repos/alphagov/service-manual-publisher/forks","keys_url":"https://api.github.com/repos/alphagov/service-manual-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/service-manual-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/service-manual-publisher/teams","hooks_url":"https://api.github.com/repos/alphagov/service-manual-publisher/hooks","issue_events_url":"https://api.github.com/repos/alphagov/service-manual-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/service-manual-publisher/events","assignees_url":"https://api.github.com/repos/alphagov/service-manual-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/service-manual-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/service-manual-publisher/tags","blobs_url":"https://api.github.com/repos/alphagov/service-manual-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/service-manual-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/service-manual-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/service-manual-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/service-manual-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/service-manual-publisher/languages","stargazers_url":"https://api.github.com/repos/alphagov/service-manual-publisher/stargazers","contributors_url":"https://api.github.com/repos/alphagov/service-manual-publisher/contributors","subscribers_url":"https://api.github.com/repos/alphagov/service-manual-publisher/subscribers","subscription_url":"https://api.github.com/repos/alphagov/service-manual-publisher/subscription","commits_url":"https://api.github.com/repos/alphagov/service-manual-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/service-manual-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/service-manual-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/service-manual-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/service-manual-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/service-manual-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/service-manual-publisher/merges","archive_url":"https://api.github.com/repos/alphagov/service-manual-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/service-manual-publisher/downloads","issues_url":"https://api.github.com/repos/alphagov/service-manual-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/service-manual-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/service-manual-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/service-manual-publisher/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/service-manual-publisher/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/service-manual-publisher/deployments","created_at":"2015-10-06T14:45:26Z","updated_at":"2016-01-22T00:56:21Z","pushed_at":"2016-04-07T13:18:22Z","git_url":"git://github.com/alphagov/service-manual-publisher.git","ssh_url":"git@github.com:alphagov/service-manual-publisher.git","clone_url":"https://github.com/alphagov/service-manual-publisher.git","svn_url":"https://github.com/alphagov/service-manual-publisher","homepage":null,"size":906,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"a7996dde68fd33b711dfba9fbf54979c02d5f95b","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":43757023,"name":"service-manual-publisher","full_name":"alphagov/service-manual-publisher","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/service-manual-publisher","description":"Create and manage content for the service manual","fork":false,"url":"https://api.github.com/repos/alphagov/service-manual-publisher","forks_url":"https://api.github.com/repos/alphagov/service-manual-publisher/forks","keys_url":"https://api.github.com/repos/alphagov/service-manual-publisher/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/service-manual-publisher/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/service-manual-publisher/teams","hooks_url":"https://api.github.com/repos/alphagov/service-manual-publisher/hooks","issue_events_url":"https://api.github.com/repos/alphagov/service-manual-publisher/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/service-manual-publisher/events","assignees_url":"https://api.github.com/repos/alphagov/service-manual-publisher/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/service-manual-publisher/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/service-manual-publisher/tags","blobs_url":"https://api.github.com/repos/alphagov/service-manual-publisher/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/service-manual-publisher/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/service-manual-publisher/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/service-manual-publisher/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/service-manual-publisher/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/service-manual-publisher/languages","stargazers_url":"https://api.github.com/repos/alphagov/service-manual-publisher/stargazers","contributors_url":"https://api.github.com/repos/alphagov/service-manual-publisher/contributors","subscribers_url":"https://api.github.com/repos/alphagov/service-manual-publisher/subscribers","subscription_url":"https://api.github.com/repos/alphagov/service-manual-publisher/subscription","commits_url":"https://api.github.com/repos/alphagov/service-manual-publisher/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/service-manual-publisher/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/service-manual-publisher/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/service-manual-publisher/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/service-manual-publisher/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/service-manual-publisher/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/service-manual-publisher/merges","archive_url":"https://api.github.com/repos/alphagov/service-manual-publisher/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/service-manual-publisher/downloads","issues_url":"https://api.github.com/repos/alphagov/service-manual-publisher/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/service-manual-publisher/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/service-manual-publisher/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/service-manual-publisher/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/service-manual-publisher/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/service-manual-publisher/deployments","created_at":"2015-10-06T14:45:26Z","updated_at":"2016-01-22T00:56:21Z","pushed_at":"2016-04-07T13:18:22Z","git_url":"git://github.com/alphagov/service-manual-publisher.git","ssh_url":"git@github.com:alphagov/service-manual-publisher.git","clone_url":"https://github.com/alphagov/service-manual-publisher.git","svn_url":"https://github.com/alphagov/service-manual-publisher","homepage":null,"size":906,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls/209"},"html":{"href":"https://github.com/alphagov/service-manual-publisher/pull/209"},"issue":{"href":"https://api.github.com/repos/alphagov/service-manual-publisher/issues/209"},"comments":{"href":"https://api.github.com/repos/alphagov/service-manual-publisher/issues/209/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls/209/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/service-manual-publisher/pulls/209/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/service-manual-publisher/statuses/456a72c66b6b615a8cd33f819db3f26a40a6bd32"}}}}