Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Comments that apply to a whole file or the whole diff, not a line

Abierto
#46 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
typescript
Área
tooling

Línea de trabajo

Start by locating the existing line-comment UI and the import/export paths that serialize anchors. Review the /diffx-finish-review skill documentation as part of the scope. Done means file- and diff-level comments work without changing line comments, older exports still import, and duplicate detection includes scope.

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

Descripción

Summary

Every comment is anchored to a line (or line range, #33). Observations about a file as a whole ("this module should be split") or the change as a whole ("missing migration") have no anchor, so reviewers attach them to an arbitrary line.

Proposal
  • File-level comment: a "Comment" button in each file header, anchored to the file path only.
  • Diff-level comment: a "Comment on diff" button above the first file, anchored to nothing.
  • "Copy comments" emits <comment scope="file"> inside the <file> block and <comment scope="diff"> outside all <file> blocks. Import parses both and de-duplicates on scope as well as anchor.
  • Line comments are unchanged on disk and in export (scope absent means line).
Compatibility

Older exports import unchanged. The /diffx-finish-review skill documentation requires an update for the two new scopes. A PR follows.

Lenguaje dominante
TypeScript
Estrellas
206
Forks
37
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

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 wong2/diffx

Todos los issues de wong2/diffx

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.