Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

fix(source-control): ready-hold check treats a Hold: line that says do not merge as a flip hold

Chiusa Adatta ai principianti
#8,708 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
shell
Ambito
testing

Direzione di ricerca

Leggi plugins/source-control/skills/pull-request/scripts/check-ready-holds.sh, in particolare il test del corpo intorno alla riga 76, e confronta la gestione di Draft: con la regola documentata in ready-for-review.md §2.5.1. Aggiungi i due casi richiesti in cui non deve essere emesso alcun messaggio: una riga Hold: contenente «do not merge» dovrebbe terminare con codice di uscita 0, mentre la stessa frase fuori da una riga Hold: dovrebbe terminare con codice di uscita 3.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

priority: medium

Problem

plugins/source-control/skills/pull-request/scripts/check-ready-holds.sh refuses the ready flip when a pull request body has a Hold: line that says "do not merge". The script's header says a body line starting Hold: holds the merge only and does not hold the flip, and ready-for-review.md §2.5.1 says the same. The body test (test("\\bdo(?:n't| not)\\s+merge\\b"; "i"), around line 76 in source-control 1.15.1) scans the whole body and does not skip Hold: lines.

Reproduce

  1. A draft PR whose body has the line Hold: do not merge until X lands. and no other hold.
  2. bash check-ready-holds.sh <pr> exits 3 with body: it says do not merge.

Expected: exit 0, because the only match is on a Hold: line.

Seen on claude-code-plugins #8691. That PR's Hold line was reworded so the flip can proceed.

Fix

Drop lines that start with Hold: (any case, after optional spaces or a quote marker, matching the Draft: line handling) before running the "do not merge" test. Add a stay-quiet test: a body whose only match is on a Hold: line exits 0, and a body that says "do not merge" outside a Hold line still exits 3.

No related issue: found while running /source-control:pull-request ready on #8691.

Lingua principale
Shell
Stelle
22
Fork
2
Merge medio
7h 23m
PR unite (30g)
950

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di melodic-software/claude-code-plugins

Tutte le issue di melodic-software/claude-code-plugins

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.