From e3c68f944157eb657b6a79415afbf012d8fdf7e7 Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Wed, 30 Sep 2026 15:17:20 +0200 Subject: [PATCH] needs.yaml may name the tones Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01GT37Z1Xtfd9pUuQtMTg6Yt --- CHANGELOG.md | 4 ++++ src/needs.rs | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b391a2d..580bb30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ One line per change, grouped by the release that shipped it. Newest first. Each release names the portal tag it is built against. +## Unreleased + +- `needs.yaml` may name the site's `tones`, one storyline each; the checks read the first storyline, which is what `build_questions` gives. + ## 0.5.10 (2026-09-30) - portal v0.5.10 - Matches portal v0.5.10 (released by portal's publish job). diff --git a/src/needs.rs b/src/needs.rs index 032882b..d3354d8 100644 --- a/src/needs.rs +++ b/src/needs.rs @@ -36,6 +36,11 @@ pub struct NeedsFile { pub needs: Vec, #[serde(default)] pub personas: Vec, + /// The tones of voice the site is told in, one storyline each + /// (portal docs, Storylines). Named here so the report can say + /// which tone a storyline index is; the checks read the first. + #[serde(default)] + pub tones: Vec, } #[derive(Debug, Deserialize)]