Reindent scripts and Greeter.cs to 2 spaces (.editorconfig)

This commit is contained in:
Demo committed 2026-10-11 21:21:22 +02:00
1 parent a4a6e039df
commit 32d194743e
5 files changed
+25 -25

No files matched your search

+10 -10
View File
@@ -9,24 +9,24 @@ $password = 'renovate'
# ENABLE_PUSH_CREATE_USER: a repository is created automatically on the first "git push".
podman start renovate-forgejo 2>$null | Out-Null
if ($LASTEXITCODE -ne 0) {
podman run -d --name renovate-forgejo -p 3000:3000 -v renovate-forgejo-data:/data `
-e FORGEJO__security__INSTALL_LOCK=true `
-e FORGEJO__repository__ENABLE_PUSH_CREATE_USER=true `
-e FORGEJO__repository__DEFAULT_BRANCH=main `
codeberg.org/forgejo/forgejo:11 | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Could not start the Forgejo container' }
podman run -d --name renovate-forgejo -p 3000:3000 -v renovate-forgejo-data:/data `
-e FORGEJO__security__INSTALL_LOCK=true `
-e FORGEJO__repository__ENABLE_PUSH_CREATE_USER=true `
-e FORGEJO__repository__DEFAULT_BRANCH=main `
codeberg.org/forgejo/forgejo:11 | Out-Null
if ($LASTEXITCODE -ne 0) { throw 'Could not start the Forgejo container' }
}
Write-Host 'Waiting for Forgejo ...'
do {
Start-Sleep -Seconds 1
try { $ready = (Invoke-WebRequest 'http://localhost:3000/api/healthz' -UseBasicParsing).StatusCode -eq 200 } catch { $ready = $false }
Start-Sleep -Seconds 1
try { $ready = (Invoke-WebRequest 'http://localhost:3000/api/healthz' -UseBasicParsing).StatusCode -eq 200 } catch { $ready = $false }
} until ($ready)
# 2. Create the bot user (ignore the error if it already exists) and generate a fresh access token
podman exec -u git renovate-forgejo forgejo admin user create --admin --username $username `
--password $password --email renovate@localhost --must-change-password=false 2>$null | Out-Null
--password $password --email renovate@localhost --must-change-password=false 2>$null | Out-Null
$token = podman exec -u git renovate-forgejo forgejo admin user generate-access-token `
--username $username --token-name "renovate-$ts" --scopes all --raw
--username $username --token-name "renovate-$ts" --scopes all --raw
Set-Content -Path $tokenFile -Value $token -NoNewline
Write-Host "`nForgejo is running: http://localhost:3000" -ForegroundColor Cyan