Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン 初心者向け
#64,555 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
90/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, shell
領域
ci-cd, devops

調査の方向性

.github/shared/copilot-pr-data-fetch.md から始め、gh pr list --json のフィールド一覧と Output Files のスキーマコメントを確認します。/tmp/gh-aw/agent/pr-data/copilot-prs.json の共有出力に、要求された PR サイズフィールドが含まれていることを確認してから、make recompile を実行します。後続の Copilot PR-analysis workflows が additions、deletions、changedFiles を読み取れる状態になれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Go
スター
5.3k
フォーク
568
平均マージ
5時間 57分
マージ済み PR(30日)
647

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/gh-aw のほかの issue

github/gh-aw の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。