{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/whitehall/issues/2231","labels_url":"https://api.github.com/repos/alphagov/whitehall/issues/2231/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/whitehall/issues/2231/comments","events_url":"https://api.github.com/repos/alphagov/whitehall/issues/2231/events","html_url":"https://github.com/alphagov/whitehall/pull/2231","id":89321481,"number":2231,"title":"Data migration to replace policy admin URLs in content.","user":{"login":"elliotcm","id":109225,"avatar_url":"https://avatars.githubusercontent.com/u/109225?v=3","gravatar_id":"","url":"https://api.github.com/users/elliotcm","html_url":"https://github.com/elliotcm","followers_url":"https://api.github.com/users/elliotcm/followers","following_url":"https://api.github.com/users/elliotcm/following{/other_user}","gists_url":"https://api.github.com/users/elliotcm/gists{/gist_id}","starred_url":"https://api.github.com/users/elliotcm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliotcm/subscriptions","organizations_url":"https://api.github.com/users/elliotcm/orgs","repos_url":"https://api.github.com/users/elliotcm/repos","events_url":"https://api.github.com/users/elliotcm/events{/privacy}","received_events_url":"https://api.github.com/users/elliotcm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-18T15:23:13Z","updated_at":"2015-06-19T10:09:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/whitehall/pulls/2231","html_url":"https://github.com/alphagov/whitehall/pull/2231","diff_url":"https://github.com/alphagov/whitehall/pull/2231.diff","patch_url":"https://github.com/alphagov/whitehall/pull/2231.patch"},"body":"These will stop working once the code and/or data is removed, and so need replacing with their full public URL.\r\n\r\nOutput when run locally: https://gist.github.com/elliotcm/3c63f101d6d49241a912"},"comment":{"url":"https://api.github.com/repos/alphagov/whitehall/issues/comments/113459605","html_url":"https://github.com/alphagov/whitehall/pull/2231#issuecomment-113459605","issue_url":"https://api.github.com/repos/alphagov/whitehall/issues/2231","id":113459605,"user":{"login":"elliotcm","id":109225,"avatar_url":"https://avatars.githubusercontent.com/u/109225?v=3","gravatar_id":"","url":"https://api.github.com/users/elliotcm","html_url":"https://github.com/elliotcm","followers_url":"https://api.github.com/users/elliotcm/followers","following_url":"https://api.github.com/users/elliotcm/following{/other_user}","gists_url":"https://api.github.com/users/elliotcm/gists{/gist_id}","starred_url":"https://api.github.com/users/elliotcm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elliotcm/subscriptions","organizations_url":"https://api.github.com/users/elliotcm/orgs","repos_url":"https://api.github.com/users/elliotcm/repos","events_url":"https://api.github.com/users/elliotcm/events{/privacy}","received_events_url":"https://api.github.com/users/elliotcm/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T10:09:09Z","updated_at":"2015-06-19T10:09:09Z","body":"@boffbowsh @edds I've updated the tests and code to better handle deleted policies/supporting pages.  This should hopefully also be an easier to parse conditional."}}