From 7d857a9e3ab53c5b34346aecf78d3999d83b0229 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Sun, 25 Jan 2026 12:54:20 -0500 Subject: [PATCH] Add draft note to top of output --- src/main.rs | 2 ++ templates/relnotes.md | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/main.rs b/src/main.rs index d047336..62c0df5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,6 +23,7 @@ const RELNOTES_LABELS: &[&str] = &[ struct ReleaseNotes { version: String, date: NaiveDate, + draft: bool, language_relnotes: String, compiler_relnotes: String, @@ -150,6 +151,7 @@ fn main() { let relnotes = ReleaseNotes { version, date: end + six_weeks, + draft, language_relnotes, compiler_relnotes, diff --git a/templates/relnotes.md b/templates/relnotes.md index 65df3dc..5dc7b15 100644 --- a/templates/relnotes.md +++ b/templates/relnotes.md @@ -1,3 +1,8 @@ +{%- if draft -%} +**NOTE:** Use the :pencil: links to edit those that have a `relnotes-tracking-issue`, +and they will be updated when we regenerate the notes periodically (manually). + +{% endif -%} Version {{version}} ({{date}}) ==========================