diff --git a/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 b/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 index deb20e7..9d948bd 100644 --- a/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 +++ b/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 @@ -16,6 +16,7 @@ Will create a folder in C:\Temp named after the PR number, and clone the specifi param( [string] $Uri, [string] $Path = 'C:\Temp', + # If this parameter is specified VScode will not automatically open after pulling in the PR [switch] $NoCode ) @@ -38,13 +39,12 @@ Will create a folder in C:\Temp named after the PR number, and clone the specifi Set-Location (Get-ChildItem).fullname + # Retrieve status of the current branch + git status + # open VScode If (!$nocode) { code . } - - - # Retrieve status of the current branch - git status - } catch {} +} catch {} }