1
0
mirror of https://github.com/jaapbrasser/SharedScripts.git synced 2025-12-24 21:51:38 +02:00

Added repo to folder name

This commit is contained in:
Jaap Brasser
2020-08-18 18:10:31 +02:00
parent 02efe33b13
commit 205f04a7bd

View File

@@ -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]
}