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

fix(pr-pipeline): apply-verdict readFields reads a malformed field-values answer as no fields set

Đang mở Phù hợp với người mới
#9,598 1 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
83/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ệ
javascript
Lĩnh vực
testing, tooling

Hướng nghiên cứu

Đọc .github/scripts/intake-triage/apply-verdict.mjs ở phần readFields và các trường hợp liên quan trong apply-verdict.test.mjs. Trước tiên, chạy bộ kiểm thử intake-triage, sau đó bổ sung kiểm thử cho câu trả lời có field-values không phải là một mảng. Xác minh rằng thao tác thất bại mà không ghi các trường, nhãn hoặc bình luận. Hoàn tất khi readFields từ chối các câu trả lời không hợp lệ, mảng rỗng vẫn hợp lệ và bộ kiểm thử chạy thành công.

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

Mô tả

priority: low status: confirmed

Problem

.github/scripts/intake-triage/apply-verdict.mjs readFields (line 279 on main) reads the issue-field-values answer with Array.isArray(rows) ? rows : []. A non-array answer (an error body, a changed shape) reads as "no fields set", so every person-set Size, Complexity and Uncertainty looks unset and intake's verdict can overwrite it.

#9566 fixed the same pattern in label-unblocked.mjs (issueVerdict) and in resolve-config.mjs fieldSetters, which now throw on an unexpected shape so the run writes nothing.

Acceptance criteria

  • readFields throws when the issue-field-values answer is not an array; an empty array is still a valid answer.
  • A test in apply-verdict.test.mjs shows a non-array field-values answer writes no field, label or comment, and fails on the current code.
  • The PR's CI runs the intake-triage suite and it passes.

Context

Found by the fix pass on #9566 (review finding I2's sibling). Size: Small. Complexity: Low. Uncertainty: Known.

Ngôn ngữ chính
Shell
Star
22
Fork
2
Merge trung bình
3 giờ 42 phút
Pull request đã merge (30 ngày)
938

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 melodic-software/claude-code-plugins

Tất cả issue của melodic-software/claude-code-plugins

Issue tương tự

Thêm issue về Shell/Bash

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.