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

Aperta Adatta ai principianti
#5,683 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github, github-actions, javascript, markdown

Direzione di ricerca

Inizia da .github/workflows/ai-contribution-declaration.yml, dove l’issue segnala un matcher che accetta solo i marcatori di elenco -. Confronta il suo comportamento con le riproduzioni fornite con * e +, quindi aggiorna il controllo affinché gli elementi equivalenti delle liste di attività contrassegnati come completati siano accettati oppure il formato richiesto venga indicato chiaramente. Il lavoro è terminato quando tutti e tre i marcatori si comportano come previsto per entrambe le frasi di dichiarazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
C#
Stelle
4.9k
Fork
497
Merge medio
1g 1h
PR unite (30g)
47

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/fluentui-blazor

Tutte le issue di microsoft/fluentui-blazor

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.