{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls/comments/105969983","pull_request_review_id":26872102,"id":105969983,"diff_hunk":"@@ -5,11 +5,18 @@ def initialize(content_item)\n     end\n \n     def breadcrumbs\n-      ordered_parents = all_parents.map do |parent|\n-        { title: parent.title, url: parent.base_path }\n+      ordered_parents = all_parents.map.with_index do |parent, index|\n+        {\n+          title: parent.title,\n+          url: parent.base_path,\n+          is_page_parent: index == 0\n+        }\n       end\n \n-      ordered_parents << { title: \"Home\", url: \"/\" }\n+      ordered_parents << {\n+        title: \"Home\",\n+        url: \"/\",\n+        is_page_parent: !ordered_parents.any? }","path":"lib/govuk_navigation_helpers/taxon_breadcrumbs.rb","position":18,"original_position":18,"commit_id":"e13743b9e509e80e8190fc0637a7ad459ba59f9b","original_commit_id":"e13743b9e509e80e8190fc0637a7ad459ba59f9b","user":{"login":"alecgibson","id":12036746,"avatar_url":"https://avatars3.githubusercontent.com/u/12036746?v=3","gravatar_id":"","url":"https://api.github.com/users/alecgibson","html_url":"https://github.com/alecgibson","followers_url":"https://api.github.com/users/alecgibson/followers","following_url":"https://api.github.com/users/alecgibson/following{/other_user}","gists_url":"https://api.github.com/users/alecgibson/gists{/gist_id}","starred_url":"https://api.github.com/users/alecgibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alecgibson/subscriptions","organizations_url":"https://api.github.com/users/alecgibson/orgs","repos_url":"https://api.github.com/users/alecgibson/repos","events_url":"https://api.github.com/users/alecgibson/events{/privacy}","received_events_url":"https://api.github.com/users/alecgibson/received_events","type":"User","site_admin":false},"body":"`order_parents.empty?` ?","created_at":"2017-03-14T17:10:12Z","updated_at":"2017-03-14T17:12:24Z","html_url":"https://github.com/alphagov/govuk_navigation_helpers/pull/57#discussion_r105969983","pull_request_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls/57","_links":{"self":{"href":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls/comments/105969983"},"html":{"href":"https://github.com/alphagov/govuk_navigation_helpers/pull/57#discussion_r105969983"},"pull_request":{"href":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls/57","id":110671468,"html_url":"https://github.com/alphagov/govuk_navigation_helpers/pull/57","diff_url":"https://github.com/alphagov/govuk_navigation_helpers/pull/57.diff","patch_url":"https://github.com/alphagov/govuk_navigation_helpers/pull/57.patch","issue_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/issues/57","number":57,"state":"open","locked":false,"title":"Identify parent taxon in breadcrumb helper","user":{"login":"suzannehamilton","id":754712,"avatar_url":"https://avatars3.githubusercontent.com/u/754712?v=3","gravatar_id":"","url":"https://api.github.com/users/suzannehamilton","html_url":"https://github.com/suzannehamilton","followers_url":"https://api.github.com/users/suzannehamilton/followers","following_url":"https://api.github.com/users/suzannehamilton/following{/other_user}","gists_url":"https://api.github.com/users/suzannehamilton/gists{/gist_id}","starred_url":"https://api.github.com/users/suzannehamilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suzannehamilton/subscriptions","organizations_url":"https://api.github.com/users/suzannehamilton/orgs","repos_url":"https://api.github.com/users/suzannehamilton/repos","events_url":"https://api.github.com/users/suzannehamilton/events{/privacy}","received_events_url":"https://api.github.com/users/suzannehamilton/received_events","type":"User","site_admin":false},"body":"This will allow the breadcrumb component in static to collapse the breadcrumbs to just the parent taxon in the mobile view.\r\n\r\nhttps://trello.com/c/Y7OirowB/472-mobile-version-of-breadcrumbs-should-only-show-previous-link\r\n\r\nThe new flag is used in alphagov/static#948, but they can be merged in any order.","created_at":"2017-03-14T17:08:55Z","updated_at":"2017-03-14T17:12:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"768b10953b62013262e55817d005bc442824f4ee","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls/57/commits","review_comments_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls/57/comments","review_comment_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/issues/57/comments","statuses_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/statuses/e13743b9e509e80e8190fc0637a7ad459ba59f9b","head":{"label":"alphagov:breadcrumb-parents","ref":"breadcrumb-parents","sha":"e13743b9e509e80e8190fc0637a7ad459ba59f9b","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars3.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":68029111,"name":"govuk_navigation_helpers","full_name":"alphagov/govuk_navigation_helpers","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars3.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/govuk_navigation_helpers","description":"Gem to transform content-store data into payloads for GOV.UK frontend components","fork":false,"url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers","forks_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/forks","keys_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/teams","hooks_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/events","assignees_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/tags","blobs_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/languages","stargazers_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/subscription","commits_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/merges","archive_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/downloads","issues_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/deployments","created_at":"2016-09-12T16:57:21Z","updated_at":"2016-09-12T16:57:30Z","pushed_at":"2017-03-14T17:08:56Z","git_url":"git://github.com/alphagov/govuk_navigation_helpers.git","ssh_url":"git@github.com:alphagov/govuk_navigation_helpers.git","clone_url":"https://github.com/alphagov/govuk_navigation_helpers.git","svn_url":"https://github.com/alphagov/govuk_navigation_helpers","homepage":null,"size":82,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"d3b821411672d37144be4212fe6f47ce05ba21ee","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars3.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":68029111,"name":"govuk_navigation_helpers","full_name":"alphagov/govuk_navigation_helpers","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars3.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/govuk_navigation_helpers","description":"Gem to transform content-store data into payloads for GOV.UK frontend components","fork":false,"url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers","forks_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/forks","keys_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/teams","hooks_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/events","assignees_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/tags","blobs_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/languages","stargazers_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/subscription","commits_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/merges","archive_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/downloads","issues_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/deployments","created_at":"2016-09-12T16:57:21Z","updated_at":"2016-09-12T16:57:30Z","pushed_at":"2017-03-14T17:08:56Z","git_url":"git://github.com/alphagov/govuk_navigation_helpers.git","ssh_url":"git@github.com:alphagov/govuk_navigation_helpers.git","clone_url":"https://github.com/alphagov/govuk_navigation_helpers.git","svn_url":"https://github.com/alphagov/govuk_navigation_helpers","homepage":null,"size":82,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls/57"},"html":{"href":"https://github.com/alphagov/govuk_navigation_helpers/pull/57"},"issue":{"href":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/issues/57"},"comments":{"href":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/govuk_navigation_helpers/statuses/e13743b9e509e80e8190fc0637a7ad459ba59f9b"}}}}
{"actor":{"display_login":"alecgibson"}}