Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

mtg: validate Release notes in frontend CI

Chiusa
#179 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Una pull request collegata è già stata integrata.

  • #183 di @omikron-agent — integrata

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
67/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
node.js, typescript

Direzione di ricerca

Start by reading the existing scan:* scripts, the release-notes module, and the frontend CI script invoked by pnpm run ci. Add validation through the module's public functions and cover each error case, including reporting all errors at once, with vitest. Done means the Node entry point reports each offending file, exits non-zero for invalid fragments, and pnpm run ci passes for valid release notes.

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

Descrizione

ready-for-agent

Parent

#175

What to build

A developer who commits a broken Release note gets a failing frontend CI instead of a broken "What's new" page.

The Release notes module validates raw fragments (path + content) and reports every error at once, not just the first: an unknown kind, a missing or empty de or en, malformed YAML, and a released version folder without release.yaml. A small Node entry point, bundled with esbuild like the existing scan:* scripts, runs this validation over the release-notes directory and exits non-zero with all errors listed. The frontend CI script runs it. The release command (separate ticket) will reuse the same entry point.

Acceptance criteria

  • Validation reports an unknown kind, a missing or empty de/en, malformed YAML and a release folder without release.yaml
  • All errors are reported in one run, each naming the offending file
  • A Node entry point validates the release-notes directory and exits non-zero on any error
  • pnpm run ci runs it and fails on an invalid fragment, passes on valid ones
  • vitest tests, through the module's public functions, cover each error case and the "all errors at once" behaviour
Lingua principale
TypeScript
Stelle
0
Fork
1
Merge medio
10h 20m
PR unite (30g)
36

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 myOmikron/code

Tutte le issue di myOmikron/code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.