{"action":"created","comment":{"url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments/214570106","pull_request_review_id":151651638,"id":214570106,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDU3MDEwNg==","diff_hunk":"@@ -120,6 +120,18 @@ Describe \"Set-Location\" -Tags \"CI\" {\n             (Get-Location).Path | Should -Be ($initialLocation).Path\n         }\n \n+        It 'Should go to last location back, forth and back again when specifying minus, plus and minus as a path' {\n+            $initialLocation = Get-Location","path":"test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1","position":5,"original_position":5,"commit_id":"3fce0e6bbb0f5d05f5f3985dbb03b2b392fba2de","original_commit_id":"3fce0e6bbb0f5d05f5f3985dbb03b2b392fba2de","user":{"login":"iSazonov","id":22290914,"node_id":"MDQ6VXNlcjIyMjkwOTE0","avatar_url":"https://avatars2.githubusercontent.com/u/22290914?v=4","gravatar_id":"","url":"https://api.github.com/users/iSazonov","html_url":"https://github.com/iSazonov","followers_url":"https://api.github.com/users/iSazonov/followers","following_url":"https://api.github.com/users/iSazonov/following{/other_user}","gists_url":"https://api.github.com/users/iSazonov/gists{/gist_id}","starred_url":"https://api.github.com/users/iSazonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iSazonov/subscriptions","organizations_url":"https://api.github.com/users/iSazonov/orgs","repos_url":"https://api.github.com/users/iSazonov/repos","events_url":"https://api.github.com/users/iSazonov/events{/privacy}","received_events_url":"https://api.github.com/users/iSazonov/received_events","type":"User","site_admin":false},"body":"What about ` $initialPath = (Get-Location).Path` ? (See next test.)","created_at":"2018-09-03T03:36:27Z","updated_at":"2018-09-03T03:37:47Z","html_url":"https://github.com/PowerShell/PowerShell/pull/7206#discussion_r214570106","pull_request_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/7206","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments/214570106"},"html":{"href":"https://github.com/PowerShell/PowerShell/pull/7206#discussion_r214570106"},"pull_request":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/7206"}}},"pull_request":{"url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/7206","id":198169980,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MTY5OTgw","html_url":"https://github.com/PowerShell/PowerShell/pull/7206","diff_url":"https://github.com/PowerShell/PowerShell/pull/7206.diff","patch_url":"https://github.com/PowerShell/PowerShell/pull/7206.patch","issue_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/7206","number":7206,"state":"open","locked":false,"title":"Add support for 'cd +'","user":{"login":"bergmeister","id":9250262,"node_id":"MDQ6VXNlcjkyNTAyNjI=","avatar_url":"https://avatars0.githubusercontent.com/u/9250262?v=4","gravatar_id":"","url":"https://api.github.com/users/bergmeister","html_url":"https://github.com/bergmeister","followers_url":"https://api.github.com/users/bergmeister/followers","following_url":"https://api.github.com/users/bergmeister/following{/other_user}","gists_url":"https://api.github.com/users/bergmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/bergmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergmeister/subscriptions","organizations_url":"https://api.github.com/users/bergmeister/orgs","repos_url":"https://api.github.com/users/bergmeister/repos","events_url":"https://api.github.com/users/bergmeister/events{/privacy}","received_events_url":"https://api.github.com/users/bergmeister/received_events","type":"User","site_admin":false},"body":"## PR Summary\r\n\r\nCloses #7189\r\n\r\n`cd +` adds the ability to revert `cd -` by having another bounded stack with the same limit for 'redo' actions.\r\nBehaviour is similar to back/forward navigation in explorer.exe\r\nWhen the location is set to a path and the redo stack is non-empty then the redo stack gets flushed.\r\nWhen `cd +` happens, then the redo stack is pushed to as well for a more intuitive way of navigating backwards and forwards.\r\nAll the work is done of course on the Set-location cmdlet, which is aliased to cd on all platforms.\r\n\r\n## PR Checklist\r\n\r\n- [x] [PR has a meaningful title](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)\r\n    - Use the present tense and imperative mood when describing your changes\r\n- [x] [Summarized changes](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)\r\n- [x] [Change is not breaking](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes)\r\n- [x] [Make sure all `.h`, `.cpp`, `.cs`, `.ps1` and `.psm1` files have the correct copyright header](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)\r\n- [ ] This PR is ready to merge and is not [Work in Progress](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress).\r\n    - If the PR is work in progress, please add the prefix `WIP:` to the beginning of the title and remove the prefix when the PR is ready.\r\n- **User-facing changes**\r\n    - [ ] Not Applicable\r\n    - **OR**\r\n    - [x] User-facing [Documentation needed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission)\r\n        - [ ] Issue filed - Issue link: We should add this into the existing issue for `cd -` here: https://github.com/PowerShell/PowerShell-Docs/issues/2476\r\n- **Testing - New and feature**\r\n    - [ ] Not Applicable or can only be tested interactively\r\n    - **OR**\r\n    - [x] [Make sure you've added a new test if existing tests do not effectively test the code changed](https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting)\r\n        - [x] [Add `[feature]` if the change is significant or affects feature tests](https://github.com/PowerShell/PowerShell/blob/master/docs/testing-guidelines/testing-guidelines.md#requesting-additional-tests-for-a-pr)\r\n","created_at":"2018-06-28T22:27:43Z","updated_at":"2018-09-03T03:37:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3bba97847d7dae43bb76b881c9b93028a87b27bf","assignee":null,"assignees":[],"requested_reviewers":[{"login":"daxian-dbw","id":127450,"node_id":"MDQ6VXNlcjEyNzQ1MA==","avatar_url":"https://avatars2.githubusercontent.com/u/127450?v=4","gravatar_id":"","url":"https://api.github.com/users/daxian-dbw","html_url":"https://github.com/daxian-dbw","followers_url":"https://api.github.com/users/daxian-dbw/followers","following_url":"https://api.github.com/users/daxian-dbw/following{/other_user}","gists_url":"https://api.github.com/users/daxian-dbw/gists{/gist_id}","starred_url":"https://api.github.com/users/daxian-dbw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daxian-dbw/subscriptions","organizations_url":"https://api.github.com/users/daxian-dbw/orgs","repos_url":"https://api.github.com/users/daxian-dbw/repos","events_url":"https://api.github.com/users/daxian-dbw/events{/privacy}","received_events_url":"https://api.github.com/users/daxian-dbw/received_events","type":"User","site_admin":false},{"login":"BrucePay","id":6876108,"node_id":"MDQ6VXNlcjY4NzYxMDg=","avatar_url":"https://avatars3.githubusercontent.com/u/6876108?v=4","gravatar_id":"","url":"https://api.github.com/users/BrucePay","html_url":"https://github.com/BrucePay","followers_url":"https://api.github.com/users/BrucePay/followers","following_url":"https://api.github.com/users/BrucePay/following{/other_user}","gists_url":"https://api.github.com/users/BrucePay/gists{/gist_id}","starred_url":"https://api.github.com/users/BrucePay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrucePay/subscriptions","organizations_url":"https://api.github.com/users/BrucePay/orgs","repos_url":"https://api.github.com/users/BrucePay/repos","events_url":"https://api.github.com/users/BrucePay/events{/privacy}","received_events_url":"https://api.github.com/users/BrucePay/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/7206/commits","review_comments_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/7206/comments","review_comment_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/7206/comments","statuses_url":"https://api.github.com/repos/PowerShell/PowerShell/statuses/3fce0e6bbb0f5d05f5f3985dbb03b2b392fba2de","head":{"label":"bergmeister:CdPlus","ref":"CdPlus","sha":"3fce0e6bbb0f5d05f5f3985dbb03b2b392fba2de","user":{"login":"bergmeister","id":9250262,"node_id":"MDQ6VXNlcjkyNTAyNjI=","avatar_url":"https://avatars0.githubusercontent.com/u/9250262?v=4","gravatar_id":"","url":"https://api.github.com/users/bergmeister","html_url":"https://github.com/bergmeister","followers_url":"https://api.github.com/users/bergmeister/followers","following_url":"https://api.github.com/users/bergmeister/following{/other_user}","gists_url":"https://api.github.com/users/bergmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/bergmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergmeister/subscriptions","organizations_url":"https://api.github.com/users/bergmeister/orgs","repos_url":"https://api.github.com/users/bergmeister/repos","events_url":"https://api.github.com/users/bergmeister/events{/privacy}","received_events_url":"https://api.github.com/users/bergmeister/received_events","type":"User","site_admin":false},"repo":{"id":96686239,"node_id":"MDEwOlJlcG9zaXRvcnk5NjY4NjIzOQ==","name":"PowerShell","full_name":"bergmeister/PowerShell","owner":{"login":"bergmeister","id":9250262,"node_id":"MDQ6VXNlcjkyNTAyNjI=","avatar_url":"https://avatars0.githubusercontent.com/u/9250262?v=4","gravatar_id":"","url":"https://api.github.com/users/bergmeister","html_url":"https://github.com/bergmeister","followers_url":"https://api.github.com/users/bergmeister/followers","following_url":"https://api.github.com/users/bergmeister/following{/other_user}","gists_url":"https://api.github.com/users/bergmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/bergmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bergmeister/subscriptions","organizations_url":"https://api.github.com/users/bergmeister/orgs","repos_url":"https://api.github.com/users/bergmeister/repos","events_url":"https://api.github.com/users/bergmeister/events{/privacy}","received_events_url":"https://api.github.com/users/bergmeister/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bergmeister/PowerShell","description":"PowerShell for every system!","fork":true,"url":"https://api.github.com/repos/bergmeister/PowerShell","forks_url":"https://api.github.com/repos/bergmeister/PowerShell/forks","keys_url":"https://api.github.com/repos/bergmeister/PowerShell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bergmeister/PowerShell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bergmeister/PowerShell/teams","hooks_url":"https://api.github.com/repos/bergmeister/PowerShell/hooks","issue_events_url":"https://api.github.com/repos/bergmeister/PowerShell/issues/events{/number}","events_url":"https://api.github.com/repos/bergmeister/PowerShell/events","assignees_url":"https://api.github.com/repos/bergmeister/PowerShell/assignees{/user}","branches_url":"https://api.github.com/repos/bergmeister/PowerShell/branches{/branch}","tags_url":"https://api.github.com/repos/bergmeister/PowerShell/tags","blobs_url":"https://api.github.com/repos/bergmeister/PowerShell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bergmeister/PowerShell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bergmeister/PowerShell/git/refs{/sha}","trees_url":"https://api.github.com/repos/bergmeister/PowerShell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bergmeister/PowerShell/statuses/{sha}","languages_url":"https://api.github.com/repos/bergmeister/PowerShell/languages","stargazers_url":"https://api.github.com/repos/bergmeister/PowerShell/stargazers","contributors_url":"https://api.github.com/repos/bergmeister/PowerShell/contributors","subscribers_url":"https://api.github.com/repos/bergmeister/PowerShell/subscribers","subscription_url":"https://api.github.com/repos/bergmeister/PowerShell/subscription","commits_url":"https://api.github.com/repos/bergmeister/PowerShell/commits{/sha}","git_commits_url":"https://api.github.com/repos/bergmeister/PowerShell/git/commits{/sha}","comments_url":"https://api.github.com/repos/bergmeister/PowerShell/comments{/number}","issue_comment_url":"https://api.github.com/repos/bergmeister/PowerShell/issues/comments{/number}","contents_url":"https://api.github.com/repos/bergmeister/PowerShell/contents/{+path}","compare_url":"https://api.github.com/repos/bergmeister/PowerShell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bergmeister/PowerShell/merges","archive_url":"https://api.github.com/repos/bergmeister/PowerShell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bergmeister/PowerShell/downloads","issues_url":"https://api.github.com/repos/bergmeister/PowerShell/issues{/number}","pulls_url":"https://api.github.com/repos/bergmeister/PowerShell/pulls{/number}","milestones_url":"https://api.github.com/repos/bergmeister/PowerShell/milestones{/number}","notifications_url":"https://api.github.com/repos/bergmeister/PowerShell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bergmeister/PowerShell/labels{/name}","releases_url":"https://api.github.com/repos/bergmeister/PowerShell/releases{/id}","deployments_url":"https://api.github.com/repos/bergmeister/PowerShell/deployments","created_at":"2017-07-09T13:31:45Z","updated_at":"2018-09-02T17:41:58Z","pushed_at":"2018-09-02T18:08:39Z","git_url":"git://github.com/bergmeister/PowerShell.git","ssh_url":"git@github.com:bergmeister/PowerShell.git","clone_url":"https://github.com/bergmeister/PowerShell.git","svn_url":"https://github.com/bergmeister/PowerShell","homepage":"https://microsoft.com/powershell","size":41870,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"PowerShell:master","ref":"master","sha":"eb92b14433ab62edaf0afe95312d9859170efe1d","user":{"login":"PowerShell","id":11524380,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTI0Mzgw","avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"repo":{"id":49609581,"node_id":"MDEwOlJlcG9zaXRvcnk0OTYwOTU4MQ==","name":"PowerShell","full_name":"PowerShell/PowerShell","owner":{"login":"PowerShell","id":11524380,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNTI0Mzgw","avatar_url":"https://avatars3.githubusercontent.com/u/11524380?v=4","gravatar_id":"","url":"https://api.github.com/users/PowerShell","html_url":"https://github.com/PowerShell","followers_url":"https://api.github.com/users/PowerShell/followers","following_url":"https://api.github.com/users/PowerShell/following{/other_user}","gists_url":"https://api.github.com/users/PowerShell/gists{/gist_id}","starred_url":"https://api.github.com/users/PowerShell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PowerShell/subscriptions","organizations_url":"https://api.github.com/users/PowerShell/orgs","repos_url":"https://api.github.com/users/PowerShell/repos","events_url":"https://api.github.com/users/PowerShell/events{/privacy}","received_events_url":"https://api.github.com/users/PowerShell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PowerShell/PowerShell","description":"PowerShell for every system!","fork":false,"url":"https://api.github.com/repos/PowerShell/PowerShell","forks_url":"https://api.github.com/repos/PowerShell/PowerShell/forks","keys_url":"https://api.github.com/repos/PowerShell/PowerShell/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PowerShell/PowerShell/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PowerShell/PowerShell/teams","hooks_url":"https://api.github.com/repos/PowerShell/PowerShell/hooks","issue_events_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/events{/number}","events_url":"https://api.github.com/repos/PowerShell/PowerShell/events","assignees_url":"https://api.github.com/repos/PowerShell/PowerShell/assignees{/user}","branches_url":"https://api.github.com/repos/PowerShell/PowerShell/branches{/branch}","tags_url":"https://api.github.com/repos/PowerShell/PowerShell/tags","blobs_url":"https://api.github.com/repos/PowerShell/PowerShell/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PowerShell/PowerShell/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PowerShell/PowerShell/git/refs{/sha}","trees_url":"https://api.github.com/repos/PowerShell/PowerShell/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PowerShell/PowerShell/statuses/{sha}","languages_url":"https://api.github.com/repos/PowerShell/PowerShell/languages","stargazers_url":"https://api.github.com/repos/PowerShell/PowerShell/stargazers","contributors_url":"https://api.github.com/repos/PowerShell/PowerShell/contributors","subscribers_url":"https://api.github.com/repos/PowerShell/PowerShell/subscribers","subscription_url":"https://api.github.com/repos/PowerShell/PowerShell/subscription","commits_url":"https://api.github.com/repos/PowerShell/PowerShell/commits{/sha}","git_commits_url":"https://api.github.com/repos/PowerShell/PowerShell/git/commits{/sha}","comments_url":"https://api.github.com/repos/PowerShell/PowerShell/comments{/number}","issue_comment_url":"https://api.github.com/repos/PowerShell/PowerShell/issues/comments{/number}","contents_url":"https://api.github.com/repos/PowerShell/PowerShell/contents/{+path}","compare_url":"https://api.github.com/repos/PowerShell/PowerShell/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PowerShell/PowerShell/merges","archive_url":"https://api.github.com/repos/PowerShell/PowerShell/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PowerShell/PowerShell/downloads","issues_url":"https://api.github.com/repos/PowerShell/PowerShell/issues{/number}","pulls_url":"https://api.github.com/repos/PowerShell/PowerShell/pulls{/number}","milestones_url":"https://api.github.com/repos/PowerShell/PowerShell/milestones{/number}","notifications_url":"https://api.github.com/repos/PowerShell/PowerShell/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PowerShell/PowerShell/labels{/name}","releases_url":"https://api.github.com/repos/PowerShell/PowerShell/releases{/id}","deployments_url":"https://api.github.com/repos/PowerShell/PowerShell/deployments","created_at":"2016-01-13T23:41:35Z","updated_at":"2018-09-02T23:26:32Z","pushed_at":"2018-09-02T18:10:37Z","git_url":"git://github.com/PowerShell/PowerShell.git","ssh_url":"git@github.com:PowerShell/PowerShell.git","clone_url":"https://github.com/PowerShell/PowerShell.git","svn_url":"https://github.com/PowerShell/PowerShell","homepage":"https://microsoft.com/powershell","size":42790,"stargazers_count":11112,"watchers_count":11112,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1729,"mirror_url":null,"archived":false,"open_issues_count":1607,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1729,"open_issues":1607,"watchers":11112,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/7206"},"html":{"href":"https://github.com/PowerShell/PowerShell/pull/7206"},"issue":{"href":"https://api.github.com/repos/PowerShell/PowerShell/issues/7206"},"comments":{"href":"https://api.github.com/repos/PowerShell/PowerShell/issues/7206/comments"},"review_comments":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/7206/comments"},"review_comment":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PowerShell/PowerShell/pulls/7206/commits"},"statuses":{"href":"https://api.github.com/repos/PowerShell/PowerShell/statuses/3fce0e6bbb0f5d05f5f3985dbb03b2b392fba2de"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"iSazonov"}}