Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Chiusa Adatta ai principianti
#64,555 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
90/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, shell
Ambito
ci-cd, devops

Direzione di ricerca

Inizia in .github/shared/copilot-pr-data-fetch.md ed esamina l’elenco dei campi di gh pr list --json e il commento sullo schema di Output Files. Verifica che l’output condiviso in /tmp/gh-aw/agent/pr-data/copilot-prs.json includa i campi richiesti relativi alle dimensioni delle PR, quindi esegui make recompile. Il lavoro è completato quando i workflow downstream di Copilot PR-analysis possono leggere additions, deletions e changedFiles.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
Go
Stelle
5.4k
Fork
576
Merge medio
7h 40m
PR unite (30g)
806

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/gh-aw

Tutte le issue di github/gh-aw

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.