Skip to content

Commit

Permalink
fix nonbot-commits check for git@ repo urls
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Nov 27, 2023
1 parent ee0c9cc commit b08703a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions updater/scripts/nonbot-commits.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ param(
)

Set-StrictMode -Version latest
$ErrorActionPreference = "Stop"
$ErrorActionPreference = 'Stop'

$bot = "<[email protected]>"
$RepoUrl = $RepoUrl -replace '[email protected]:', 'https://github.com/'
$bot = '<[email protected]>'

$tmpDir = Join-Path ([System.IO.Path]::GetTempPath()) ([System.Guid]::NewGuid())
New-Item -ItemType Directory $tmpDir | Out-Null
Expand All @@ -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
}
Expand Down

0 comments on commit b08703a

Please sign in to comment.