All checks were successful
Release Build (ci → main) / release-build (push) Successful in 27s
Add commit-msg hook, .gitmessage, and setup script. Ignore .cursor/ in gitignore and lower contact rate limit to 5 per hour. Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
565 B
PowerShell
18 lines
565 B
PowerShell
# Einmal pro Clone ausführen: Commit-Template + Conventional-Commits-Hook aktivieren
|
|
$ErrorActionPreference = "Stop"
|
|
$repoRoot = Resolve-Path (Join-Path $PSScriptRoot "..")
|
|
|
|
Push-Location $repoRoot
|
|
try {
|
|
git config --local commit.template .gitmessage
|
|
git config --local core.hooksPath .githooks
|
|
|
|
Write-Host "Git Hooks aktiv:" -ForegroundColor Green
|
|
Write-Host " commit.template = .gitmessage"
|
|
Write-Host " core.hooksPath = .githooks"
|
|
Write-Host ""
|
|
Write-Host "Commit-Format: feat(scope): beschreibung"
|
|
} finally {
|
|
Pop-Location
|
|
}
|