Sticky PR comment: show what changed against the base branch, not just the full table

Đang mở
#13 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, javascript
Lĩnh vực
ci-cd, testing

Hướng nghiên cứu

First read the MVP sticky-comment issue this depends on, then trace how the action reads the registry and builds the PR comment. Work out how to read the base branch registry and compare codes by enum and variant; add coverage for added, removed, changed, unchanged, and unavailable-base cases. Done when the comment shows the diff with the full table collapsed, handles no changes plainly, falls back safely, and the tests pass.

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

Mô tả

enhancement

Split out of #4's own stated "ideally" scope: "the comment shows a diff against the base branch's registry — codes added, codes whose meaning changed — rather than the full table every time. The full table can go in a collapsed <details> block."

Scope

Builds on the MVP sticky-comment issue (also split from #4). Requires scanning the base branch's registry (e.g. via a second checkout or the base ref's tree) and diffing codes by enum+variant.

Acceptance criteria

  • Comment leads with added/removed/changed codes relative to the base branch; the full table moves into a collapsed <details> block.
  • A PR with no registry changes says so plainly instead of showing an empty diff section.
  • Tests cover added, removed, and changed-meaning (same code, different enum/variant) cases.
  • Falls back to the full-table-only behaviour if the base ref's registry can't be computed (e.g. a fork PR without base checkout access), rather than failing the job.

Complexity: medium.
Depends on: the MVP sticky-comment issue split from #4.

Ngôn ngữ chính
JavaScript
Star
0
Fork
0
Merge trung bình
7 giờ 28 phút
Pull request đã merge (30 ngày)
10

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

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 codepacct/codepact-action

Tất cả issue của codepacct/codepact-action

Issue tương tự

Thêm issue về JavaScript

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.