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

[deep-report] Shared copilot-pr-data-fetch.md omits additions/deletions/changedFiles, breaking PR size metrics fleet-wide

Cerrado Apto para principiantes
#64,555 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
1/5
Tiempo estimado
Menos de una hora
Aptitud para principiantes
90/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, shell
Área
ci-cd, devops

Línea de trabajo

Comienza en .github/shared/copilot-pr-data-fetch.md e inspecciona la lista de campos de gh pr list --json y el comentario del esquema de Output Files. Confirma que la salida compartida en /tmp/gh-aw/agent/pr-data/copilot-prs.json incluye los campos de tamaño de PR solicitados y luego ejecuta make recompile. El trabajo estará hecho cuando los workflows posteriores de Copilot PR-analysis puedan leer additions, deletions y changedFiles.

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

Descripción

automation code-quality cookie improvement quick-win task-mining
Description

The Daily Copilot PR Merged Report (#64522) reports "Total Lines Added / Deleted: unavailable" and "Test Files / Workflow Runs / Billable Time: unavailable" every day, attributing it to "the mcpscripts-gh tool was not available and gh is unauthenticated in this sandbox." The real root cause is upstream: the shared pre-fetch script .github/shared/copilot-pr-data-fetch.md calls

gh pr list --repo "$GITHUB_REPOSITORY" --search "head:copilot/ created:>=${DATE_30_DAYS_AGO}" --state all \
  --json number,title,author,headRefName,createdAt,state,url,body,labels,updatedAt,closedAt,mergedAt \
  --limit 1000

which never requests the additions, deletions, or changedFiles fields — gh pr list --json supports all three. Since this fetch step runs with GITHUB_TOKEN (not the sandboxed downstream agent), the data is available to fetch; it's just never requested. Every workflow consuming /tmp/gh-aw/agent/pr-data/copilot-prs.json (at least copilot-pr-merged-report.md, and likely others importing shared/copilot-pr-analysis-base.md) inherits the same "unavailable" gap.

Add additions,deletions,changedFiles to the --json field list in shared/copilot-pr-data-fetch.md, and update the "Output Files" doc comment describing the JSON schema.

Expected Impact

Fixes a metrics gap in every downstream Copilot-PR-analysis workflow with a single one-line change to the shared fetch script, instead of each consumer separately working around missing data.

Suggested Agent

GitHub Copilot coding agent (shared workflow component edit, then make recompile).

Estimated Effort

Quick (< 1 hour)

Data Source

DeepReport Intelligence Briefing — 2026-09-30, root-caused by direct read of shared/copilot-pr-data-fetch.md after Daily Copilot PR Merged Report #64522 reported the symptom.

Generated by 🔬 Deep Report · claude · agent · 311.3 AIC · ⌖ 8.86 AIC · ⊞ 7.3K · ◷

  • expires on Oct 2, 2026, 10:46 AM UTC-08:00
Lenguaje dominante
Go
Estrellas
5.4k
Forks
584
Merge medio
3 h 20 min
PR fusionados (30 d)
830

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

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 github/gh-aw

Todos los issues de github/gh-aw

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.