Skip to content

fix(pr-assistant): honour do-not-merge and wip labels before merging - #302

Merged
juninmd merged 1 commit into
masterfrom
claude/project-thread-n09lxx
Nov 24, 2026
Merged

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

Conversation

@juninmd

@juninmd juninmd commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Requested by Antonio · project thread

Summary

  • Incidente: feat(mobile): protótipo Android isolado (avatar VRM + chat com LLM remoto) mika#77 tinha a label do-not-merge e foi mesclado pelo pr-assistant. O skip só reconhecia a label exata auto-merge-skip.
  • Novo merge-block.ts: labels de bloqueio do-not-merge, dont-merge, wip, work-in-progress, auto-merge-skip, em qualquer caixa ou separador (DO NOT MERGE, do_not_merge, don't merge, WIP...).
  • Checado em dois pontos: no skip inicial (agent.ts) e de novo no PR recém-relido em tryMerge (merge-flow.ts), então uma label adicionada durante a revisão ainda impede o merge. Também vale contra /merge do dono: para mesclar, remova a label.
  • Motivo novo merge_block_label: <label> (Telegram: "label de bloqueio (do-not-merge/wip)"); docs/ARCHITECTURE.md atualizado.
  • Fora do escopo: PRs em draft. O próprio gate de revisão converte PR para draft e volta para ready após correção; pular drafts quebraria esse fluxo, e o GitHub já recusa merge de draft.

Quality Checklist

  • User-facing behavior is described clearly.
  • Security impact was considered, including secrets, auth, and data exposure. (só restringe merge, fail-safe)
  • Performance impact was considered for startup, runtime, bundle size, or query cost. (zero chamadas extras de API; usa o PR já relido)
  • Logs, errors, and operational visibility are useful enough to debug failures.
  • UI changes were checked for keyboard access, responsive layout, and readable states. (N/A, sem UI)
  • Tests, smoke checks, or manual verification are listed below.

Verification

Evidência (sem UI, então a prova é a saída dos testes no lugar de print):

Antes do fix (só agent.ts/merge-flow.ts revertidos), o teste de regressão falha:

(fail) a green, trusted PR labeled do-not-merge is never merged
(fail) an owner /merge does not override a do-not-merge label
(fail) a label added while the run is in progress still stops the merge
 2 pass
 3 fail

Depois:

$ bun test
 328 pass
 0 fail
Ran 328 tests across 45 files.
$ bun run typecheck   # tsc --noEmit, exit 0

Generated by Claude Code

juninmd/mika#77 carried `do-not-merge` and was squash-merged: the skip only
matched the exact `auto-merge-skip` label. Hold labels now match in any case
or separator, are re-checked on the fresh PR right before the merge (a label
added mid-run still wins) and block owner `/merge` too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Cn6JQKXBbpr22WLfj9njv4
@juninmd juninmd self-assigned this Nov 24, 2026
@juninmd
juninmd merged commit e2b41ea into master Nov 24, 2026
3 checks passed
@juninmd
juninmd deleted the claude/project-thread-n09lxx branch November 24, 2026 02:09
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