Files
checklist/gitUpdate.ps1
gitea 0117ba34f8 Frontend v1.0.68:
- Agregada funcionalidad de edición de checklists
- Nuevo modal para editar nombre, descripción, modo IA y scoring
- Botón "✏️ Editar" en cada checklist (solo admins)
- Mejora en la gestión de checklists en el panel de administración

Backend v1.0.68:
- Actualización de versión para sincronizar con frontend
- Endpoint PUT /api/checklists/{id} ya soportaba la funcionalidad
2025-11-27 11:19:48 -03:00

46 lines
1.3 KiB
PowerShell

Clear-Host
# Crear archivo temporal para el mensaje
$tempFile = [System.IO.Path]::GetTempFileName()
Write-Host "Abriendo editor de texto..." -ForegroundColor Cyan
Write-Host "1. Pegue su mensaje de commit"
Write-Host "2. Guarde el archivo (Ctrl+S)"
Write-Host "3. Cierre el editor (Alt+F4 o X)" -ForegroundColor Green
Write-Host ""
# Abrir notepad con el archivo temporal
notepad++.exe $tempFile | Out-Null
# Verificar que el archivo tenga contenido
if (-not (Test-Path $tempFile) -or (Get-Item $tempFile).Length -eq 0) {
Write-Host "No se ingreso ningun mensaje. Abortando..." -ForegroundColor Red
Remove-Item $tempFile -ErrorAction SilentlyContinue
exit
}
Write-Host "`nAgregando archivos..."
git add .
Write-Host "Creando commit..."
git commit -F $tempFile
# Eliminar archivo temporal después del commit
Remove-Item $tempFile -ErrorAction SilentlyContinue
Write-Host "Haciendo push a la rama develop..."
$pushOutput = git push origin develop 2>&1
# Revisar si fallo la autenticacion
if ($pushOutput -match "Authentication failed" -or $pushOutput -match "Failed to authenticate") {
Write-Host "`nERROR: Fallo la autenticacion. Ejecutando git init para reconfigurar..." -ForegroundColor Red
git init
Write-Host "Intentando push nuevamente..."
git push origin develop
}
Write-Host "`nProceso finalizado."