From 6d52a34a37daf83240dd32ca5c824a2aacfa7ea1 Mon Sep 17 00:00:00 2001 From: PTah Date: Tue, 7 Jul 2026 17:49:19 +1000 Subject: [PATCH] fix(scripts): papatramp Git URLs use PapaTramp org, not PTah Co-authored-by: Cursor --- scripts/Rewrite-GitHostUrls.ps1 | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/scripts/Rewrite-GitHostUrls.ps1 b/scripts/Rewrite-GitHostUrls.ps1 index bbd8952..44c3e20 100644 --- a/scripts/Rewrite-GitHostUrls.ps1 +++ b/scripts/Rewrite-GitHostUrls.ps1 @@ -20,7 +20,7 @@ switch ($Target) { $BlobSuffix = '/src/branch/main' } 'papatramp' { - $Base = 'https://git.papatramp.ru/PTah' + $Base = 'https://git.papatramp.ru/PapaTramp' $BlobSuffix = '/src/branch/main' } } @@ -28,15 +28,20 @@ switch ($Target) { $BaseHost = $Base -replace '^https://', '' $patterns = @( + @{ From = 'https://github.com/PTah/([^)/''"\s]+)/blob/main/'; To = "$Base/`$1$BlobSuffix/" } + @{ From = 'https://github.com/PTah/([^)/''"\s]+)/src/branch/main/'; To = "$Base/`$1$BlobSuffix/" } @{ From = 'https://git.kalinamall.ru/PapaTramp/([^)/''"\s]+)/blob/main/'; To = "$Base/`$1$BlobSuffix/" } @{ From = 'https://git.kalinamall.ru/PapaTramp/([^)/''"\s]+)/src/branch/main/'; To = "$Base/`$1$BlobSuffix/" } - @{ From = 'https://git.kalinamall.ru/PapaTramp/([^)/''"\s]+)/src/branch/main/'; To = "$Base/`$1$BlobSuffix/" } - @{ From = 'https://git.kalinamall.ru/PapaTramp/'; To = "$Base/" } - @{ From = 'https://git.kalinamall.ru/PapaTramp/'; To = "$Base/" } + @{ From = 'https://git.papatramp.ru/PapaTramp/([^)/''"\s]+)/src/branch/main/'; To = "$Base/`$1$BlobSuffix/" } + @{ From = 'https://git.papatramp.ru/PTah/([^)/''"\s]+)/src/branch/main/'; To = "$Base/`$1$BlobSuffix/" } + @{ From = 'https://github.com/PTah/'; To = "$Base/" } @{ From = 'https://git.kalinamall.ru/PapaTramp/'; To = "$Base/" } + @{ From = 'https://git.papatramp.ru/PapaTramp/'; To = "$Base/" } + @{ From = 'https://git.papatramp.ru/PTah/'; To = "$Base/" } + @{ From = 'github.com/PTah/'; To = "$BaseHost/" } @{ From = 'git.kalinamall.ru/PapaTramp/'; To = "$BaseHost/" } - @{ From = 'git.kalinamall.ru/PapaTramp/'; To = "$BaseHost/" } - @{ From = 'git.kalinamall.ru/PapaTramp/'; To = "$BaseHost/" } + @{ From = 'git.papatramp.ru/PapaTramp/'; To = "$BaseHost/" } + @{ From = 'git.papatramp.ru/PTah/'; To = "$BaseHost/" } ) $extensions = @('*.md', '*.json', '*.service', '*.example', '*.sh', '*.ps1', '*.yml', '*.yaml')