Run lane script entry points through one lib helper (part 2 of 2)

Abierto Apto para principiantes
#15,454 5 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
72/100
Tipo de issue
Refactorización
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, javascript, node.js
Área
tooling

Línea de trabajo

Lee los siete archivos enumerados de .github/scripts/pr-unblock/ y compara sus partes finales de entrada con .github/scripts/lib/run-main.mjs, que crea la parte 1. Sustituye cada parte final por la llamada especificada a runAsScript(metaUrl, label, run), conservando su etiqueta y el comportamiento de main(process.env). Ejecuta la comprobación de sincronización indicada y las suites de pruebas pertinentes; estará listo cuando los siete scripts usen el helper y conserven el mismo comportamiento de salida y de código de salida.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Agent Brief

Type: Task
Summary: Run the remaining seven lane scripts' entry points through .github/scripts/lib/run-main.mjs in place of their copied entry tail (part 2 of 2, part of restructuring pass #14159).

Current behavior:
Seven .github/scripts/pr-unblock/ scripts still end with their own copy of the 11-line entry tail (if (process.argv[1] && import.meta.url === pathToFileURL(...)), main(...), then ::error::<label> failed):

  • main(process.env): gate-recheck.mjs:83, lane-hold.mjs:98, publish-feedback.mjs:1052, resolve-threads.mjs:196, verify-notes.mjs:362.
  • A different label: dispatch.mjs:959, refine-event-dispatch.mjs:104.

Desired behavior:
Each of the seven calls runAsScript(metaUrl, label, run) from ../lib/run-main.mjs in place of its tail. Blocked by part 1, which creates lib/run-main.mjs and adds its floor row, so this item has no floor change.

Files:

  • .github/scripts/pr-unblock/gate-recheck.mjs
  • .github/scripts/pr-unblock/lane-hold.mjs
  • .github/scripts/pr-unblock/publish-feedback.mjs
  • .github/scripts/pr-unblock/resolve-threads.mjs
  • .github/scripts/pr-unblock/verify-notes.mjs
  • .github/scripts/pr-unblock/dispatch.mjs
  • .github/scripts/pr-unblock/refine-event-dispatch.mjs

Key interfaces:

  • Each script runs main only when executed directly, with the same arguments, and on failure prints the same ::error::<label> failed line, with its own label, and exits with the same code as now.
  • Importing any of these modules from a test still runs nothing.

Acceptance criteria:

  • None of the seven scripts keeps its own entry tail; each uses lib/run-main.mjs.
  • Behavior is unchanged: the same outputs, ::error:: lines and exit codes for the same inputs.
  • The diff edits only the listed files and the lines of a test that assert on them when the change breaks that assertion.
  • The pull request stays within 400 changed lines and 15 hand-edited files.
  • python3 -I scripts/sync-hold-floor.py --check passes.
  • test_merge_holds_sync.py, test_babysit_risk.py, .github/actions/resolve-config/callers.test.mjs and the node suite of .github/scripts/pr-unblock/ pass.
  • ci-status is green.

Out of scope:

  • lib/run-main.mjs itself, other duplication, eval cases, fixtures, and skill and agent text.
Lenguaje dominante
Shell
Estrellas
22
Forks
2
Merge medio
1 h 18 min
PR fusionados (30 d)
975

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de melodic-software/claude-code-plugins

Todos los issues de melodic-software/claude-code-plugins

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.