From 205f04a7bd11208f812f240b2bf602da55b4734b Mon Sep 17 00:00:00 2001 From: Jaap Brasser Date: Tue, 18 Aug 2020 18:10:31 +0200 Subject: [PATCH] Added repo to folder name --- Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 b/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 index eb0c846..651ddca 100644 --- a/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 +++ b/Get-GitPullRequestLocal/Get-GitPullRequestLocal.ps1 @@ -29,7 +29,7 @@ Will create a folder in C:\Temp named after the PR number, and clone the specifi $Request = Invoke-WebRequest $Uri $Values = @{ - Folder = '{0}\PR{1}' -f $Path, (($Uri -replace '\/$').Split('/')[-1]) + Folder = '{0}\{1}_PR{2}' -f $Path, (($Uri -replace '\/$').Split('/')[4]), (($Uri -replace '\/$').Split('/')[-1]) GitHubUri = 'https://github.com/{0}' -f $Request.Links.Where{$_.class -eq 'no-underline'}[1].title.split(':')[0] Branch = $Request.Links.Where{$_.class -eq 'no-underline'}[1].title.split(':')[1] }