Store and Resolve Previous Commit SHA for Synchronize Jobs
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
- 55/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, typescript
Línea de trabajo
Start with prepare.ts and trace how synchronize jobs are created, then inspect the job schema and database code in packages/schema and packages/db. Check how job history identifies the most recently completed job for the same PR and how superseded jobs are represented. Done means the new field is persisted, the three listed cases are covered, and the required typecheck, test, and lint commands pass.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Goal
Store and resolve previousCommitSha for synchronize jobs so the incremental review knows which commit range to diff.
Background
To review only the files changed by the newest push, the review needs the previously reviewed head commit. The natural source is the most recently completed job for the same PR: its head SHA becomes the base for the incremental diff.
This sub-issue is part of the parent issue: incremental reviews on synchronize events.
What to Build
- In
prepare.ts(or the job preparation path), when a new job is created for asynchronizeevent, resolvepreviousCommitShafrom the most recently completed job on the same PR - Persist
previousCommitShaon the job record (schema/DB change inpackages/dbandpackages/schema) - Handle the superseded-job case: if the previous job was superseded before completing, there is no valid previous SHA, so leave it unset and let the review fall back to the full PR diff
- Keep the resolution logic runtime-agnostic so it works in both Cloudflare Workers and Node/Docker
Done When
- New
synchronizejobs carrypreviousCommitShawhen a prior completed job exists for the same PR - Superseded or missing prior jobs leave
previousCommitShaunset (no incorrect fallback to an older SHA) - Schema/DB migration works in both runtimes
- Tests cover first-push, completed-prior-job, and superseded-prior-job cases
-
npm run typecheck,npm test, andnpm run lintall pass
- Lenguaje dominante
- TypeScript
- Estrellas
- 125
- Forks
- 23
- Merge medio
- 2 d 13 h
- PR fusionados (30 d)
- 12
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una 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 devarshishimpi/codra
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
devarshishimpi/codra#178 ·
Los mantenedores suelen responder en 1 día
-
bug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
devarshishimpi/codra#176 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
devarshishimpi/codra#186 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
devarshishimpi/codra#185 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 4/5 3-5 días Aptitud para principiantes 58/100
devarshishimpi/codra#184 ·
Los mantenedores suelen responder en 1 día
Todos los issues de devarshishimpi/codra
Issues similares
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 83/100
gofish-graphics/gofish-graphics#1384 ·
Los mantenedores suelen responder en 1 día
-
adapter bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Olanetsoft/agent-lookout#353 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
vicharanashala/vibe#1542 ·
Los mantenedores suelen responder en 1 día
-
bug chore P2 size:XS
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
josephfung/curia#2666 ·
Los mantenedores suelen responder en 1 día
-
area: batch
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
inabagumi/shinju-date#7294 ·
Los mantenedores suelen responder en 1 día