fix: checked task-list declarations using * or + fail the contribution check

Đang mở Phù hợp với người mới
#5,683 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
75/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, github-actions, javascript, markdown

Hướng nghiên cứu

Bắt đầu với .github/workflows/ai-contribution-declaration.yml, nơi issue chỉ ra một matcher chỉ chấp nhận dấu đầu dòng -. So sánh hành vi của nó với các trường hợp tái hiện được cung cấp bằng * và +, sau đó cập nhật bước kiểm tra để chấp nhận các mục danh sách công việc đã đánh dấu hoàn thành tương đương hoặc thông báo rõ định dạng bắt buộc. Hoàn tất khi cả ba dấu đầu dòng hoạt động như mong đợi với cả hai câu khai báo.

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

Mô tả

Hullo folks,

I'm doing some research for Tessl Code Review and we ran it against your repo. It flagged a potential issue, and I figured it made sense to share it with you:

Bug

The contribution-declaration check rejects checked Markdown task-list items when they use * or + instead of -. The declaration text and checked state are unchanged, but a non-exempt contributor gets told to complete both checkboxes.

This is a small contributor-workflow bug, rather than a Blazor runtime issue.

Reproduction

In a PR description, keep the two exact declaration sentences in the AI contribution declaration section, check both boxes, and change only their list marker:

## AI contribution declaration

* [x] I have read and followed the AI contribution policy.
* [x] I have personally reviewed and understood all changes, tested them, and take responsibility for this contribution.

Those are reproduction-fixture contents, not personal declarations for this report.

I executed the workflow's actual embedded Node script locally with a synthetic non-exempt author, empty exemption files and the same body for each case:

List marker Exit code Result
- [x] 0 Both declarations accepted
* [x] 1 Both declarations reported missing
+ [x] 1 Both declarations reported missing

The failure message is:

::error::A human contributor must complete both required checkboxes in the AI contribution declaration section of the pull request description.
Expected behavior and source

Equivalent checked unordered-list items should satisfy the check when they contain the exact required sentences. Alternatively, an intentionally dash-only format should be identified in the error so contributors can correct it.

At 701ec67, the matcher is:

line.trim().match(/^- \[[xX]\] (.+)$/)

It recognizes only the hyphen marker.

Validation limits

The local check ran the extracted workflow script unchanged in Node 25.2.0 on macOS, with filesystem reads and the process object replaced by fixtures. I did not open a test PR or run GitHub Actions. No .NET build was needed for this workflow-only case.

Full transparency: I work at Tessl, and we've spotted that using Tessl Code Review - using repository-level context and specific review lenses that improve over time through feedback. That’s how this finding surfaced.

We’re just getting started and want to offer the tool free to open-source projects. If this is useful, happy to give you access.

Baptiste

Ngôn ngữ chính
C#
Star
4.9k
Fork
497
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
47

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 microsoft/fluentui-blazor

Tất cả issue của microsoft/fluentui-blazor

Issue tương tự

Thêm issue về C#

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.