{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/search-admin/pulls/comments/75831053","id":75831053,"diff_hunk":"@@ -118,3 +118,13 @@ def build_doc_from_recommended_link(recommended_link, include_es_data: false)\n     details\n   end\n end\n+\n+private\n+\n+def type(recommended_link)","path":"features/support/recommended_links.rb","position":25,"original_position":25,"commit_id":"30324205fb80423217336901cf2af36477377811","original_commit_id":"30324205fb80423217336901cf2af36477377811","user":{"login":"MatMoore","id":87579,"avatar_url":"https://avatars.githubusercontent.com/u/87579?v=3","gravatar_id":"","url":"https://api.github.com/users/MatMoore","html_url":"https://github.com/MatMoore","followers_url":"https://api.github.com/users/MatMoore/followers","following_url":"https://api.github.com/users/MatMoore/following{/other_user}","gists_url":"https://api.github.com/users/MatMoore/gists{/gist_id}","starred_url":"https://api.github.com/users/MatMoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatMoore/subscriptions","organizations_url":"https://api.github.com/users/MatMoore/orgs","repos_url":"https://api.github.com/users/MatMoore/repos","events_url":"https://api.github.com/users/MatMoore/events{/privacy}","received_events_url":"https://api.github.com/users/MatMoore/received_events","type":"User","site_admin":false},"body":"On second thoughts I'll just make the model method public.","created_at":"2016-08-23T09:32:06Z","updated_at":"2016-08-23T09:32:06Z","html_url":"https://github.com/alphagov/search-admin/pull/52#discussion_r75831053","pull_request_url":"https://api.github.com/repos/alphagov/search-admin/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/alphagov/search-admin/pulls/comments/75831053"},"html":{"href":"https://github.com/alphagov/search-admin/pull/52#discussion_r75831053"},"pull_request":{"href":"https://api.github.com/repos/alphagov/search-admin/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/search-admin/pulls/52","id":81835699,"html_url":"https://github.com/alphagov/search-admin/pull/52","diff_url":"https://github.com/alphagov/search-admin/pull/52.diff","patch_url":"https://github.com/alphagov/search-admin/pull/52.patch","issue_url":"https://api.github.com/repos/alphagov/search-admin/issues/52","number":52,"state":"open","locked":false,"title":"Use inside-government-link type for internal links","user":{"login":"rubenarakelyan","id":444232,"avatar_url":"https://avatars.githubusercontent.com/u/444232?v=3","gravatar_id":"","url":"https://api.github.com/users/rubenarakelyan","html_url":"https://github.com/rubenarakelyan","followers_url":"https://api.github.com/users/rubenarakelyan/followers","following_url":"https://api.github.com/users/rubenarakelyan/following{/other_user}","gists_url":"https://api.github.com/users/rubenarakelyan/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenarakelyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenarakelyan/subscriptions","organizations_url":"https://api.github.com/users/rubenarakelyan/orgs","repos_url":"https://api.github.com/users/rubenarakelyan/repos","events_url":"https://api.github.com/users/rubenarakelyan/events{/privacy}","received_events_url":"https://api.github.com/users/rubenarakelyan/received_events","type":"User","site_admin":false},"body":"search-admin uses the `recommended-link` type when sending recommended links to Rummager. However, internal links (those starting with www.gov.uk) should instead use the type `inside-government-link`. This commit changes search-admin to support this type.\r\n\r\nTrello: https://trello.com/c/WY4JGxKG/39-manage-external-recommended-links-in-search-admin\r\n\r\nFollow-up to: https://github.com/alphagov/search-admin/pull/48","created_at":"2016-08-18T15:25:02Z","updated_at":"2016-08-23T09:32:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a5174fa2a6d32d11246f9e8d1c5bb0984c1b7f2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/search-admin/pulls/52/commits","review_comments_url":"https://api.github.com/repos/alphagov/search-admin/pulls/52/comments","review_comment_url":"https://api.github.com/repos/alphagov/search-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/search-admin/issues/52/comments","statuses_url":"https://api.github.com/repos/alphagov/search-admin/statuses/30324205fb80423217336901cf2af36477377811","head":{"label":"alphagov:use-inside-government-links","ref":"use-inside-government-links","sha":"30324205fb80423217336901cf2af36477377811","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":19340234,"name":"search-admin","full_name":"alphagov/search-admin","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/search-admin","description":"Admin for Search","fork":false,"url":"https://api.github.com/repos/alphagov/search-admin","forks_url":"https://api.github.com/repos/alphagov/search-admin/forks","keys_url":"https://api.github.com/repos/alphagov/search-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/search-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/search-admin/teams","hooks_url":"https://api.github.com/repos/alphagov/search-admin/hooks","issue_events_url":"https://api.github.com/repos/alphagov/search-admin/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/search-admin/events","assignees_url":"https://api.github.com/repos/alphagov/search-admin/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/search-admin/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/search-admin/tags","blobs_url":"https://api.github.com/repos/alphagov/search-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/search-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/search-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/search-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/search-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/search-admin/languages","stargazers_url":"https://api.github.com/repos/alphagov/search-admin/stargazers","contributors_url":"https://api.github.com/repos/alphagov/search-admin/contributors","subscribers_url":"https://api.github.com/repos/alphagov/search-admin/subscribers","subscription_url":"https://api.github.com/repos/alphagov/search-admin/subscription","commits_url":"https://api.github.com/repos/alphagov/search-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/search-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/search-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/search-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/search-admin/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/search-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/search-admin/merges","archive_url":"https://api.github.com/repos/alphagov/search-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/search-admin/downloads","issues_url":"https://api.github.com/repos/alphagov/search-admin/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/search-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/search-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/search-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/search-admin/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/search-admin/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/search-admin/deployments","created_at":"2014-05-01T09:06:07Z","updated_at":"2016-02-26T17:53:44Z","pushed_at":"2016-08-18T15:49:33Z","git_url":"git://github.com/alphagov/search-admin.git","ssh_url":"git@github.com:alphagov/search-admin.git","clone_url":"https://github.com/alphagov/search-admin.git","svn_url":"https://github.com/alphagov/search-admin","homepage":"https://search-admin.publishing.service.gov.uk/","size":235,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"44da45c261a5c62d95fcaa5e2dd9128c83248634","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":19340234,"name":"search-admin","full_name":"alphagov/search-admin","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/search-admin","description":"Admin for Search","fork":false,"url":"https://api.github.com/repos/alphagov/search-admin","forks_url":"https://api.github.com/repos/alphagov/search-admin/forks","keys_url":"https://api.github.com/repos/alphagov/search-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/search-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/search-admin/teams","hooks_url":"https://api.github.com/repos/alphagov/search-admin/hooks","issue_events_url":"https://api.github.com/repos/alphagov/search-admin/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/search-admin/events","assignees_url":"https://api.github.com/repos/alphagov/search-admin/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/search-admin/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/search-admin/tags","blobs_url":"https://api.github.com/repos/alphagov/search-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/search-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/search-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/search-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/search-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/search-admin/languages","stargazers_url":"https://api.github.com/repos/alphagov/search-admin/stargazers","contributors_url":"https://api.github.com/repos/alphagov/search-admin/contributors","subscribers_url":"https://api.github.com/repos/alphagov/search-admin/subscribers","subscription_url":"https://api.github.com/repos/alphagov/search-admin/subscription","commits_url":"https://api.github.com/repos/alphagov/search-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/search-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/search-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/search-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/search-admin/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/search-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/search-admin/merges","archive_url":"https://api.github.com/repos/alphagov/search-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/search-admin/downloads","issues_url":"https://api.github.com/repos/alphagov/search-admin/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/search-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/search-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/search-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/search-admin/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/search-admin/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/search-admin/deployments","created_at":"2014-05-01T09:06:07Z","updated_at":"2016-02-26T17:53:44Z","pushed_at":"2016-08-18T15:49:33Z","git_url":"git://github.com/alphagov/search-admin.git","ssh_url":"git@github.com:alphagov/search-admin.git","clone_url":"https://github.com/alphagov/search-admin.git","svn_url":"https://github.com/alphagov/search-admin","homepage":"https://search-admin.publishing.service.gov.uk/","size":235,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/search-admin/pulls/52"},"html":{"href":"https://github.com/alphagov/search-admin/pull/52"},"issue":{"href":"https://api.github.com/repos/alphagov/search-admin/issues/52"},"comments":{"href":"https://api.github.com/repos/alphagov/search-admin/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/search-admin/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/search-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/search-admin/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/search-admin/statuses/30324205fb80423217336901cf2af36477377811"}}}}
{"actor":{"display_login":"MatMoore"}}