pr-review: make the trigger label configurable (blank = no label filter)
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 42/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- bash, github, json
- Ambito
- devtools
Direzione di ricerca
The hardcoded label is LABEL="ready-for-ai-review" near line 86 of scripts/pr-review-scanner.sh, and it feeds the gh pr list --label call. Start there, then check how pr-review.json config is read and where open_labeled.jsonl eviction is computed. Done means a blank trigger_label lists all open PRs with a --limit or pagination, keeps the reviewed-SHA marker behaviour, and the change is mirrored to the vendored copy.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
pr-review-scanner.sh hardcodes its trigger label:
LABEL="ready-for-ai-review" # scripts/pr-review-scanner.sh:86
...
gh pr list --repo "$repo" --label "$LABEL" --state open \
--json number,author,headRefOid,isDraft,reviewDecision
So a PR is only reviewed if someone remembers to add the label. In cortex that requirement is getting in the way of adoption. Also, labels_required in ~/.repoman/programs/pr-review.json only declares what the program needs. Changing it doesn't change which PRs get scanned.
Request
Make the trigger label configurable, and let it be turned off:
- Read the label from program config (e.g.
pr-review.json→trigger_label), optionally overridable per repo. Default staysready-for-ai-review. - Blank value = no label filter: the scanner lists all open PRs and still applies its current filters (no drafts, no bot-authored PRs, no APPROVED PRs). The
<!-- reviewed: <sha> -->marker still means each head commit is reviewed only once.
Notes
- I checked
gh pr list --label ""with gh 2.102.0: it returns the same set as omitting--label(rossoctl/cortex 9/9, rossoctl/rossoctl 10/10). This is undocumented behaviour, so add an explicit branch that drops--labelwhen the value is blank instead of passing"". - The scanner doesn't pass
--limit, so gh's default cap of 30 applies. Without the label filter, a busy repo would be silently cut off at 30, so add an explicit--limit(or paginate). - The eviction logic uses the label-filtered list (
open_labeled.jsonl). With no label, eviction should key on open/closed state. repoman-check/labels_requiredshould not insist that the label exists when it's blank.- The scanner is vendored from rossoctl/automation (
_vendor.json), so the change probably belongs there and then gets re-vendored (see #27).
Interim
A cortex workflow that auto-applies the label on opened / reopened / ready_for_review is being proposed separately.
Requested in Slack by Jim Cadden; raised by @huang195 (Hai Huang) for cortex.
- Lingua principale
- Shell
- Stelle
- 8
- Fork
- 2
- Merge medio
- 2g 18h
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di rossoctl/repoman
-
[doc-drift] rossoctl/repomanApertadoc-drift
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Re-vendor the plugin engine dir to current automation mainForse già presa @jimcadden l’ha presa 6 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
rossoctl/repoman#27 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 45/100
rossoctl/repoman#11 · 3 commenti ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di rossoctl/repoman
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nolte/kamerplanter-appliance#32 ·
I maintainer di solito rispondono entro 1 giorno
-
research
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
slayerlabs/benchmarks-fabryka-ai#256 ·
I maintainer di solito rispondono entro 1 giorno
-
bug priority-medium to-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
ONLYOFFICE/DocumentServer#3917 ·