Sticky PR comment: MVP that always posts the full table

Đang mở
#12 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/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

Hướng nghiên cứu

Read the action entry point and README to find how inputs, pull request events, and permissions are handled. Implement the opt-in comment: true behavior with direct REST API fetch calls, using a hidden HTML-comment marker to update the PR's existing comment; skip push events and warn without failing when permission is missing. Done when repeated runs keep one full-table comment per PR and the README documents the required pull-requests: write permission.

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, scoped to the part #4 itself calls the straightforward piece: "upsert a single comment containing the registry table, keyed by a hidden marker."

Scope

Implement only the always-post-full-table behaviour, opt-in via with: comment: true, defaulting to off. No diff-against-base-branch logic (that's the second half of #4, split separately so it can be reviewed independently).

Acceptance criteria

  • comment: true on a pull_request event upserts one comment per PR, keyed by a hidden HTML-comment marker, editing the same comment on repeated runs instead of accumulating.
  • No-op on push events.
  • Uses fetch against the REST API directly (no new runtime dependency), per #4's existing constraint.
  • Missing/insufficient token permission (pull-requests: write) produces a clear warning and the job still exits normally rather than failing the build over a comment it couldn't post.
  • README documents the required permission.

Complexity: medium.
Depends on: none; this can land before the diff-aware follow-up.

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.