From b08703af8e289255a3df1d1cb07b16a699ac963e Mon Sep 17 00:00:00 2001 From: Ivan Dlugos Date: Mon, 27 Nov 2023 13:01:44 +0100 Subject: [PATCH] fix nonbot-commits check for git@ repo urls --- updater/scripts/nonbot-commits.ps1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/updater/scripts/nonbot-commits.ps1 b/updater/scripts/nonbot-commits.ps1 index cc94da7..699d3f0 100644 --- a/updater/scripts/nonbot-commits.ps1 +++ b/updater/scripts/nonbot-commits.ps1 @@ -6,9 +6,10 @@ param( ) Set-StrictMode -Version latest -$ErrorActionPreference = "Stop" +$ErrorActionPreference = 'Stop' -$bot = "" +$RepoUrl = $RepoUrl -replace 'git@github.com:', 'https://github.com/' +$bot = '' $tmpDir = Join-Path ([System.IO.Path]::GetTempPath()) ([System.Guid]::NewGuid()) New-Item -ItemType Directory $tmpDir | Out-Null @@ -29,7 +30,8 @@ try if ($nonbotCommits.Length -gt 0) { - Write-Warning "There are commits made by others than $bot" +` + Write-Warning "There are commits made by others than $bot" } $nonbotCommits }