pr-review: make the trigger label configurable (blank = no label filter)
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- bash, github, json
- Área
- devtools
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Shell
- Estrellas
- 8
- Forks
- 2
- Merge medio
- 2 d 18 h
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de rossoctl/repoman
-
[doc-drift] rossoctl/repomanAbiertodoc-drift
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Re-vendor the plugin engine dir to current automation mainPosiblemente ocupada @jimcadden la tomó hace 6 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
rossoctl/repoman#27 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
Los mantenedores suelen responder en 2 días
-
github-pr-review: add a follow-up phase so the reviewer answers replies in threads it openedAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 2 días
-
Dificultad 3/5 Medio día Aptitud para principiantes 45/100
rossoctl/repoman#11 · 3 comentarios ·
Los mantenedores suelen responder en 2 días
Todos los issues de rossoctl/repoman
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nolte/kamerplanter-appliance#32 ·
Los mantenedores suelen responder en 1 día
-
Automat etapu B+C rozstrzyga „w przebiegu” po nazwie katalogu z issue karty, nie po KATALOGIAbiertoresearch
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
slayerlabs/benchmarks-fabryka-ai#256 ·
Los mantenedores suelen responder en 1 día
-
bug priority-medium to-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ONLYOFFICE/DocumentServer#3917 ·