Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đã đóng Phù hợp với người mới
#64,555 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức phù hợp với người mới
90/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, shell
Lĩnh vực
ci-cd, devops

Hướng nghiên cứu

Bắt đầu trong .github/shared/copilot-pr-data-fetch.md và kiểm tra danh sách trường của gh pr list --json cũng như chú thích schema của Output Files. Xác nhận rằng output dùng chung tại /tmp/gh-aw/agent/pr-data/copilot-prs.json bao gồm các trường kích thước PR được yêu cầu, sau đó chạy make recompile. Hoàn tất khi các workflow Copilot PR-analysis downstream có thể đọc additions, deletions và changedFiles.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Go
Star
5.4k
Fork
584
Merge trung bình
3 giờ 16 phút
Pull request đã merge (30 ngày)
829

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/gh-aw

Tất cả issue của github/gh-aw

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.