Sticky PR comment: show what changed against the base branch, not just the full table
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
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ả
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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codepacct/codepact-action
-
documentation good first issue wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
codepacct/codepact-action#68 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
codepacct/codepact-action#67 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue tests wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
codepacct/codepact-action#66 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue tests wave
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 79/100
codepacct/codepact-action#65 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue tests wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
codepacct/codepact-action#64 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codepacct/codepact-action
Issue tương tự
-
bug security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
IbrahimHafez1/loadwise#251 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
erkamyaman/unslop-anything#421 ·
Maintainer thường phản hồi trong vòng 1 ngày