Sticky PR comment: show what changed against the base branch, not just the full table

Abierto
#13 0 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
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, javascript
Área
ci-cd, testing

Línea de trabajo

First read the MVP sticky-comment issue this depends on, then trace how the action reads the registry and builds the PR comment. Work out how to read the base branch registry and compare codes by enum and variant; add coverage for added, removed, changed, unchanged, and unavailable-base cases. Done when the comment shows the diff with the full table collapsed, handles no changes plainly, falls back safely, and the tests pass.

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

Descripción

enhancement

Split out of #4's own stated "ideally" scope: "the comment shows a diff against the base branch's registry — codes added, codes whose meaning changed — rather than the full table every time. The full table can go in a collapsed <details> block."

Scope

Builds on the MVP sticky-comment issue (also split from #4). Requires scanning the base branch's registry (e.g. via a second checkout or the base ref's tree) and diffing codes by enum+variant.

Acceptance criteria

  • Comment leads with added/removed/changed codes relative to the base branch; the full table moves into a collapsed <details> block.
  • A PR with no registry changes says so plainly instead of showing an empty diff section.
  • Tests cover added, removed, and changed-meaning (same code, different enum/variant) cases.
  • Falls back to the full-table-only behaviour if the base ref's registry can't be computed (e.g. a fork PR without base checkout access), rather than failing the job.

Complexity: medium.
Depends on: the MVP sticky-comment issue split from #4.

Lenguaje dominante
JavaScript
Estrellas
0
Forks
0
Merge medio
7 h 28 min
PR fusionados (30 d)
10

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 codepacct/codepact-action

Todos los issues de codepacct/codepact-action

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.