{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/government-frontend/pulls/comments/131643487","pull_request_review_id":54641974,"id":131643487,"diff_hunk":"@@ -0,0 +1,100 @@\n+name: Contents list\n+description: Lists a page’s contents with links pointing to headings within the document\n+body: |\n+  Pass a list of contents each with an `href` and `text`. The `href` should point at the ID of a heading within the page.\n+\n+  Supports nesting contents one level deep, currently only used by specialist documents. When nesting the top level list items\n+  display in bold.\n+\n+  `format_numbers` option will pull out numbers in the link text to render them as though they were the list style type. Applies to\n+  numbers at the start of text, with or without a decimal. See the [format complex numbers fixture](/component-guide/contents-list/formats_complex_numbers) for details.\n+accessibility_criteria: |\n+  The contents links must:","path":"app/views/components/docs/contents-list.yml","position":12,"original_position":12,"commit_id":"d4c2044da33af2c19cde7ad813b6a9f22aab2d7a","original_commit_id":"cb2c32d0087469ce652420be76e7de8f998889b9","user":{"login":"fofr","id":319055,"avatar_url":"https://avatars3.githubusercontent.com/u/319055?v=4","gravatar_id":"","url":"https://api.github.com/users/fofr","html_url":"https://github.com/fofr","followers_url":"https://api.github.com/users/fofr/followers","following_url":"https://api.github.com/users/fofr/following{/other_user}","gists_url":"https://api.github.com/users/fofr/gists{/gist_id}","starred_url":"https://api.github.com/users/fofr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fofr/subscriptions","organizations_url":"https://api.github.com/users/fofr/orgs","repos_url":"https://api.github.com/users/fofr/repos","events_url":"https://api.github.com/users/fofr/events{/privacy}","received_events_url":"https://api.github.com/users/fofr/received_events","type":"User","site_admin":false},"body":"Updated","created_at":"2017-08-07T12:41:25Z","updated_at":"2017-08-07T12:41:26Z","html_url":"https://github.com/alphagov/government-frontend/pull/420#discussion_r131643487","pull_request_url":"https://api.github.com/repos/alphagov/government-frontend/pulls/420","_links":{"self":{"href":"https://api.github.com/repos/alphagov/government-frontend/pulls/comments/131643487"},"html":{"href":"https://github.com/alphagov/government-frontend/pull/420#discussion_r131643487"},"pull_request":{"href":"https://api.github.com/repos/alphagov/government-frontend/pulls/420"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/government-frontend/pulls/420","id":133506408,"html_url":"https://github.com/alphagov/government-frontend/pull/420","diff_url":"https://github.com/alphagov/government-frontend/pull/420.diff","patch_url":"https://github.com/alphagov/government-frontend/pull/420.patch","issue_url":"https://api.github.com/repos/alphagov/government-frontend/issues/420","number":420,"state":"open","locked":false,"title":"[Do not merge] Create contents list component","user":{"login":"fofr","id":319055,"avatar_url":"https://avatars3.githubusercontent.com/u/319055?v=4","gravatar_id":"","url":"https://api.github.com/users/fofr","html_url":"https://github.com/fofr","followers_url":"https://api.github.com/users/fofr/followers","following_url":"https://api.github.com/users/fofr/following{/other_user}","gists_url":"https://api.github.com/users/fofr/gists{/gist_id}","starred_url":"https://api.github.com/users/fofr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fofr/subscriptions","organizations_url":"https://api.github.com/users/fofr/orgs","repos_url":"https://api.github.com/users/fofr/repos","events_url":"https://api.github.com/users/fofr/events{/privacy}","received_events_url":"https://api.github.com/users/fofr/received_events","type":"User","site_admin":false},"body":"Marked as do not merge while I double check cross browser. Ready for review.\r\n\r\nNotes to reviewers:\r\n* Preview: http://government-frontend-pr-420.herokuapp.com/component-guide/contents-list\r\n* Looking for guidance on accessibility acceptance criteria to use\r\n* Please check my BEM\r\n\r\nChanges:\r\n* Switch all formats to use contents list component\r\n* Consolidates specialist documents with same pattern as other formats\r\n* Remove analytics tracking on contents lists, currently unused\r\n* Remove unused templates\r\n* Incorporates @andysellick’s contents list suggestions in this PR: https://github.com/alphagov/government-frontend/pull/394\r\n\r\n![contents list component - government frontend component guide 20170801](https://user-images.githubusercontent.com/319055/28833673-f1b00cce-76d7-11e7-88e2-98ab16bae7cf.png)\r\n","created_at":"2017-08-01T15:43:13Z","updated_at":"2017-08-07T12:41:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41323036b1d8b48d3cb1db686014f5139ef42d31","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/government-frontend/pulls/420/commits","review_comments_url":"https://api.github.com/repos/alphagov/government-frontend/pulls/420/comments","review_comment_url":"https://api.github.com/repos/alphagov/government-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/government-frontend/issues/420/comments","statuses_url":"https://api.github.com/repos/alphagov/government-frontend/statuses/d4c2044da33af2c19cde7ad813b6a9f22aab2d7a","head":{"label":"alphagov:contents-list-components","ref":"contents-list-components","sha":"d4c2044da33af2c19cde7ad813b6a9f22aab2d7a","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","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":26582330,"name":"government-frontend","full_name":"alphagov/government-frontend","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","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/government-frontend","description":"Serves government pages on GOV.UK","fork":false,"url":"https://api.github.com/repos/alphagov/government-frontend","forks_url":"https://api.github.com/repos/alphagov/government-frontend/forks","keys_url":"https://api.github.com/repos/alphagov/government-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/government-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/government-frontend/teams","hooks_url":"https://api.github.com/repos/alphagov/government-frontend/hooks","issue_events_url":"https://api.github.com/repos/alphagov/government-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/government-frontend/events","assignees_url":"https://api.github.com/repos/alphagov/government-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/government-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/government-frontend/tags","blobs_url":"https://api.github.com/repos/alphagov/government-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/government-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/government-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/government-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/government-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/government-frontend/languages","stargazers_url":"https://api.github.com/repos/alphagov/government-frontend/stargazers","contributors_url":"https://api.github.com/repos/alphagov/government-frontend/contributors","subscribers_url":"https://api.github.com/repos/alphagov/government-frontend/subscribers","subscription_url":"https://api.github.com/repos/alphagov/government-frontend/subscription","commits_url":"https://api.github.com/repos/alphagov/government-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/government-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/government-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/government-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/government-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/government-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/government-frontend/merges","archive_url":"https://api.github.com/repos/alphagov/government-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/government-frontend/downloads","issues_url":"https://api.github.com/repos/alphagov/government-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/government-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/government-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/government-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/government-frontend/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/government-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/government-frontend/deployments","created_at":"2014-11-13T10:18:07Z","updated_at":"2017-04-11T11:45:40Z","pushed_at":"2017-08-07T11:27:40Z","git_url":"git://github.com/alphagov/government-frontend.git","ssh_url":"git@github.com:alphagov/government-frontend.git","clone_url":"https://github.com/alphagov/government-frontend.git","svn_url":"https://github.com/alphagov/government-frontend","homepage":"https://docs.publishing.service.gov.uk/apps/government-frontend.html","size":22164,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":6,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"46745412ffd1714f7ff0252112cd276dad319a8f","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","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":26582330,"name":"government-frontend","full_name":"alphagov/government-frontend","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","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/government-frontend","description":"Serves government pages on GOV.UK","fork":false,"url":"https://api.github.com/repos/alphagov/government-frontend","forks_url":"https://api.github.com/repos/alphagov/government-frontend/forks","keys_url":"https://api.github.com/repos/alphagov/government-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/government-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/government-frontend/teams","hooks_url":"https://api.github.com/repos/alphagov/government-frontend/hooks","issue_events_url":"https://api.github.com/repos/alphagov/government-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/government-frontend/events","assignees_url":"https://api.github.com/repos/alphagov/government-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/government-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/government-frontend/tags","blobs_url":"https://api.github.com/repos/alphagov/government-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/government-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/government-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/government-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/government-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/government-frontend/languages","stargazers_url":"https://api.github.com/repos/alphagov/government-frontend/stargazers","contributors_url":"https://api.github.com/repos/alphagov/government-frontend/contributors","subscribers_url":"https://api.github.com/repos/alphagov/government-frontend/subscribers","subscription_url":"https://api.github.com/repos/alphagov/government-frontend/subscription","commits_url":"https://api.github.com/repos/alphagov/government-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/government-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/government-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/government-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/government-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/government-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/government-frontend/merges","archive_url":"https://api.github.com/repos/alphagov/government-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/government-frontend/downloads","issues_url":"https://api.github.com/repos/alphagov/government-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/government-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/government-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/government-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/government-frontend/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/government-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/government-frontend/deployments","created_at":"2014-11-13T10:18:07Z","updated_at":"2017-04-11T11:45:40Z","pushed_at":"2017-08-07T11:27:40Z","git_url":"git://github.com/alphagov/government-frontend.git","ssh_url":"git@github.com:alphagov/government-frontend.git","clone_url":"https://github.com/alphagov/government-frontend.git","svn_url":"https://github.com/alphagov/government-frontend","homepage":"https://docs.publishing.service.gov.uk/apps/government-frontend.html","size":22164,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/government-frontend/pulls/420"},"html":{"href":"https://github.com/alphagov/government-frontend/pull/420"},"issue":{"href":"https://api.github.com/repos/alphagov/government-frontend/issues/420"},"comments":{"href":"https://api.github.com/repos/alphagov/government-frontend/issues/420/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/government-frontend/pulls/420/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/government-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/government-frontend/pulls/420/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/government-frontend/statuses/d4c2044da33af2c19cde7ad813b6a9f22aab2d7a"}}}}
{"actor":{"display_login":"fofr"}}