{"action":"created","comment":{"url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls/comments/63009443","id":63009443,"diff_hunk":"@@ -0,0 +1,21 @@\n+'use strict';\n+\n+var _ = require('underscore');\n+\n+module.exports = {\n+    getPreviousSteps: function(steps, route) {","path":"lib/util/helpers.js","position":6,"original_position":6,"commit_id":"93dc4a0470b167f5c60c23aceb6d39361834b444","original_commit_id":"93dc4a0470b167f5c60c23aceb6d39361834b444","user":{"login":"gavboulton","id":3900826,"avatar_url":"https://avatars.githubusercontent.com/u/3900826?v=3","gravatar_id":"","url":"https://api.github.com/users/gavboulton","html_url":"https://github.com/gavboulton","followers_url":"https://api.github.com/users/gavboulton/followers","following_url":"https://api.github.com/users/gavboulton/following{/other_user}","gists_url":"https://api.github.com/users/gavboulton/gists{/gist_id}","starred_url":"https://api.github.com/users/gavboulton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavboulton/subscriptions","organizations_url":"https://api.github.com/users/gavboulton/orgs","repos_url":"https://api.github.com/users/gavboulton/repos","events_url":"https://api.github.com/users/gavboulton/events{/privacy}","received_events_url":"https://api.github.com/users/gavboulton/received_events","type":"User","site_admin":false},"body":"These arguments seem backwards, we need possible previous steps based on a route.","created_at":"2016-05-12T12:15:51Z","updated_at":"2016-05-12T12:15:51Z","html_url":"https://github.com/UKHomeOffice/passports-form-wizard/pull/52#discussion_r63009443","pull_request_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls/comments/63009443"},"html":{"href":"https://github.com/UKHomeOffice/passports-form-wizard/pull/52#discussion_r63009443"},"pull_request":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls/52","id":66851370,"html_url":"https://github.com/UKHomeOffice/passports-form-wizard/pull/52","diff_url":"https://github.com/UKHomeOffice/passports-form-wizard/pull/52.diff","patch_url":"https://github.com/UKHomeOffice/passports-form-wizard/pull/52.patch","issue_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/issues/52","number":52,"state":"open","locked":false,"title":"Check for forks when generating back link","user":{"login":"joefitter","id":3604142,"avatar_url":"https://avatars.githubusercontent.com/u/3604142?v=3","gravatar_id":"","url":"https://api.github.com/users/joefitter","html_url":"https://github.com/joefitter","followers_url":"https://api.github.com/users/joefitter/followers","following_url":"https://api.github.com/users/joefitter/following{/other_user}","gists_url":"https://api.github.com/users/joefitter/gists{/gist_id}","starred_url":"https://api.github.com/users/joefitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joefitter/subscriptions","organizations_url":"https://api.github.com/users/joefitter/orgs","repos_url":"https://api.github.com/users/joefitter/repos","events_url":"https://api.github.com/users/joefitter/events{/privacy}","received_events_url":"https://api.github.com/users/joefitter/received_events","type":"User","site_admin":false},"body":"If a step is reached by taking a fork, the back-links middleware doesn't recognise this as it only checks the 'next' property to pick up paths to a step.\r\n\r\nForks should be included in the previousSteps variable at the top of the middleware.\r\n\r\n* Include forks in previousSteps variable which is checked against step history","created_at":"2016-04-18T13:17:20Z","updated_at":"2016-05-12T12:15:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a207607ae0826c9188e4317a955457d4e905f14","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls/52/commits","review_comments_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls/52/comments","review_comment_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/issues/52/comments","statuses_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/statuses/93dc4a0470b167f5c60c23aceb6d39361834b444","head":{"label":"UKHomeOffice:bugfix/#51-forks-not-taken-into-account-in-back-links-middleware","ref":"bugfix/#51-forks-not-taken-into-account-in-back-links-middleware","sha":"93dc4a0470b167f5c60c23aceb6d39361834b444","user":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":31961442,"name":"passports-form-wizard","full_name":"UKHomeOffice/passports-form-wizard","owner":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/passports-form-wizard","description":"","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard","forks_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/releases{/id}","deployments_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/deployments","created_at":"2015-03-10T14:20:10Z","updated_at":"2016-04-25T05:56:25Z","pushed_at":"2016-05-12T11:47:36Z","git_url":"git://github.com/UKHomeOffice/passports-form-wizard.git","ssh_url":"git@github.com:UKHomeOffice/passports-form-wizard.git","clone_url":"https://github.com/UKHomeOffice/passports-form-wizard.git","svn_url":"https://github.com/UKHomeOffice/passports-form-wizard","homepage":null,"size":124,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":10,"forks":5,"open_issues":10,"watchers":3,"default_branch":"master"}},"base":{"label":"UKHomeOffice:master","ref":"master","sha":"f44bf1222e96a84687331cca7f6aa128004f9ca2","user":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":31961442,"name":"passports-form-wizard","full_name":"UKHomeOffice/passports-form-wizard","owner":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/passports-form-wizard","description":"","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard","forks_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/releases{/id}","deployments_url":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/deployments","created_at":"2015-03-10T14:20:10Z","updated_at":"2016-04-25T05:56:25Z","pushed_at":"2016-05-12T11:47:36Z","git_url":"git://github.com/UKHomeOffice/passports-form-wizard.git","ssh_url":"git@github.com:UKHomeOffice/passports-form-wizard.git","clone_url":"https://github.com/UKHomeOffice/passports-form-wizard.git","svn_url":"https://github.com/UKHomeOffice/passports-form-wizard","homepage":null,"size":124,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":10,"forks":5,"open_issues":10,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls/52"},"html":{"href":"https://github.com/UKHomeOffice/passports-form-wizard/pull/52"},"issue":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/issues/52"},"comments":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-wizard/statuses/93dc4a0470b167f5c60c23aceb6d39361834b444"}}}}