Repository navigation
fix(pr-assistant): mensagens de merge/revisão e identidade do bot - #292
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Antonio · project thread
O quê
Modelo: opencode(não é saída de IA):buildOriginMetadata(agent, null)omite a linha.diagram(mermaid validado: palavra-chave conhecida, ≤2000 chars) e renderiza blocomermaidentre o resumo e os achados.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 emerged_by= juninmd). Agora loga warning no start eREQUIRE_BOT_IDENTITY=truefalha 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 --noEmitlimpo.Ação no deploy: definir
GITHUB_APP_ID,GITHUB_INSTALLATION_ID,GITHUB_APP_PRIVATE_KEY_PATH(e idealmenteREQUIRE_BOT_IDENTITY=true).Generated by Claude Code