feat: - tornado obrigatório registrar uma linha de resum
- tornado obrigatório registrar uma linha de resumo para cada implementação concluída - corrigido o Scanner e o Retakes no painel usando o Python do venv (3.14) em vez do /usr/bin/python3 3.9 e injetado o caminho da engine no executar_retakes.py Resumo: - 7 arquivos alterados - 0 novos - 7 modificados - 0 removidos 7 files changed, 57 insertions(+), 8 deletions(-) Arquivos: - .gitignore - AGENTS.md - CLAUDE.md - admin/DEV-NOTES.md - admin/deploy.command - code/cep-plugin/main.js - code/engine/executar_retakes.py
This commit is contained in:
+12
-2
@@ -21,6 +21,7 @@ umask 077
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
|
||||
ADMIN="$ROOT/admin"
|
||||
NOTES="$ADMIN/DEV-NOTES.md"
|
||||
COMMIT_DETAILS="$ADMIN/COMMIT-DETAILS.md"
|
||||
REMOTE="origin"
|
||||
BRANCH="main"
|
||||
|
||||
@@ -57,10 +58,16 @@ echo " ... ($(echo "$CHANGES" | grep -c .) itens)"
|
||||
echo
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# 2) Extrair notas do DEV-NOTES.md
|
||||
# 2) Extrair detalhes preparados pelo agente
|
||||
# ------------------------------------------------------------
|
||||
MSG_NOTA=""
|
||||
if [[ -f "$NOTES" && -s "$NOTES" ]]; then
|
||||
if [[ -f "$COMMIT_DETAILS" && -s "$COMMIT_DETAILS" ]]; then
|
||||
MSG_NOTA="$(sed 's/^[[:space:]]*//; s/[[:space:]]*$//' "$COMMIT_DETAILS" \
|
||||
| grep -v '^$' \
|
||||
| grep -v '^<!--' \
|
||||
| grep -v '^-->' || true)"
|
||||
fi
|
||||
if [[ -z "$MSG_NOTA" && -f "$NOTES" && -s "$NOTES" ]]; then
|
||||
MSG_NOTA="$(awk '
|
||||
/^## NOVO NESTE LOTE/ {f=1; next}
|
||||
/^## / && f {exit}
|
||||
@@ -124,6 +131,9 @@ fi
|
||||
say "Adicionando arquivos e commitando..."
|
||||
git add -A
|
||||
git commit -m "$COMMIT_MSG" || die "commit falhou"
|
||||
if [[ -f "$COMMIT_DETAILS" ]]; then
|
||||
: > "$COMMIT_DETAILS"
|
||||
fi
|
||||
ok "commit criado: $(git rev-parse --short HEAD)"
|
||||
echo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user