Skip to content

fix(pr-assistant): mensagens de merge/revisão e identidade do bot - #292

Merged
juninmd merged 1 commit into
masterfrom
claude/project-thread-aruw2j
Nov 22, 2026
Merged

juninmd merged 1 commit into
masterfrom
claude/project-thread-aruw2j

Conversation

@juninmd

@juninmd juninmd commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Requested by Antonio · project thread

O quê

  • Aviso de merge não mostra mais Modelo: opencode (não é saída de IA): buildOriginMetadata(agent, null) omite a linha.
  • Revisão aceita campo opcional diagram (mermaid validado: palavra-chave conhecida, ≤2000 chars) e renderiza bloco mermaid entre o resumo e os achados.
  • Identidade: sem GITHUB_APP_* o bot cai no PAT em silêncio (foi o que aconteceu no perf(agents): fetch per-repo and per-PR data concurrently in sweep agents #290: comentários e merged_by = juninmd). Agora loga warning no start e REQUIRE_BOT_IDENTITY=true falha o boot.

Ordem dos comentários

No #290 a aprovação (04:08:44) já veio antes do "mesclado" (04:08:52); o código só comenta após o merge, que exige APPROVE. Não alterei.

Evidências

cd ts && bun test → 292 pass, 0 fail (3 novos); tsc --noEmit limpo.

Ação no deploy: definir GITHUB_APP_ID, GITHUB_INSTALLATION_ID, GITHUB_APP_PRIVATE_KEY_PATH (e idealmente REQUIRE_BOT_IDENTITY=true).


Generated by Claude Code

…maid, warn on PAT identity

Merge notices are not AI output so they no longer claim a model. Reviews may carry an
optional validated mermaid diagram. Starting without the GitHub App now warns, and
REQUIRE_BOT_IDENTITY=true fails fast instead of posting as the PAT owner.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cn6JQJueg6fkvACyyzJLtd
@juninmd
juninmd merged commit a27bfdd into master Nov 22, 2026
3 checks passed
@juninmd
juninmd deleted the claude/project-thread-aruw2j branch November 22, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants