Skip to content

Fix the release-notes reference pages and the init template - #4813

Merged
theletterf merged 3 commits into
mainfrom
docs/release-notes-reference-cleanup
Nov 11, 2026
Merged

theletterf merged 3 commits into
mainfrom
docs/release-notes-reference-cleanup

Conversation

@theletterf

@theletterf theletterf commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

changelog init wrote a changelog.yml with filename: timestamp, a value the loader rejects, so a fresh configuration failed to load. The release-notes reference pages also still presented removed or deprecated settings as current. This PR fixes the template value and brings the pages in line with the code.

Affects: Release notes, Documentation, Configuration

Prompt summary: Check whether the release notes onboarding docs are still valid against the code, then open the PRs needed. The audit covers the docs-release-notes docset (fixed in https://github.com/elastic/docs-release-notes/pull/16) and this repo's own reference pages, which the onboarding docs link to.

Why

config/changelog.example.yml is the embedded changelog init template, and its live filename: timestamp line trips the timestamp is no longer supported error in ChangelogConfigurationLoader. The reference pages describe source: github_release as a working profile source although ProfileFilterResolver stops with an error on it, present output_products, output_directory, repo and owner without their deprecation warnings, document link_allow_repos as a bundle-time filter although changelog bundle no longer reads it, and list timestamp and issue filename strategies that fail to load. The evaluate-pr page mentions a 120-character threshold that ChangelogPrEvaluationService does not have.

What

The init template loads again

filename: pr replaces filename: timestamp in config/changelog.example.yml. The comments around filename, link_allow_repos, repo, owner and the profile examples now describe the current behaviour, and the example profiles use product:. The commented GitHub release profile is replaced by a changelog gh-release command.

Profiles in the configuration reference

configure-ref.md gains a product entry, which also drives changelog remove when products is unset, and marks output_products, output_directory, owner, repo and source as deprecated or removed, each with what the loader does today. bundle.repo and bundle.owner are deprecated for file names only: entry sourcing still reads them and has no git fallback, so the page says to keep them. The entry sourcing section states which filters the CDN mode supports and that --all, --input-products and --issues need --force-local or --directory. The filename table keeps pr only.

GitHub releases and private links in the guide

bundle.md points the GitHub release section and the command examples at changelog gh-release, describes it as commit-range based (it resolves the pull requests between the previous tag and the requested tag and never parses the release notes), drops the agent-gh-release profile that no longer loads, and says that the scrubber Lambda controls published links from the assembler.yml allowlist. cmd-bundle.md says the same for its link allowlist section and names product in the commit-range notes.

Command pages

cmd-add.md keeps pr as the only filename strategy and marks --use-issue-number as unsupported. cmd-gh-release.md and cmd-bundle.md drop the Release Drafter wording for the same commit-range description. cmd-evaluate-pr.md drops the length threshold. cmd-init.md says the seeded link_allow_repos is unused.

A test that loads the real template

Two tests in ChangelogConfigurationTests load config/changelog.example.yml, embedded in the test project, through ChangelogConfigurationLoader: as shipped, and after ChangelogTemplateSeeder.ApplyBundleRepoSeed has seeded bundle.owner, bundle.repo and link_allow_repos. Both assert zero errors and FilenameStrategy.Pr. On main the first one fails on the timestamp value.

Verify

dotnet test tests/Elastic.Changelog.Tests/ -- --treenode-filter "/*/*/ChangelogConfigurationTests/*"
# LoadChangelogConfiguration_InitTemplate_LoadsWithoutErrors — fails on main, passes here
# LoadChangelogConfiguration_SeededInitTemplate_LoadsWithoutErrors

docs-builder --strict
# 0 errors, 0 warnings on the docset

cd "$(mktemp -d)" && git init -q && docs-builder changelog init && docs-builder changelog validate-labels --config docs/changelog.yml --pr-labels bug-fix
# before this change the generated docs/changelog.yml fails to load with "filename: 'timestamp' is no longer supported"

Out of scope: the C# help strings that feed docs/cli-schema.json still mention timestamp-slug, --use-issue-number and source: github_release (ChangelogCommand.cs and the git-range error in ChangelogBundlingService.cs); the remaining output_products examples in bundle.md still load, with a warning. Both need a schema regeneration and an SDK this machine does not have.

Hooks skipped on the commits: main pins the .NET 11 SDK and this machine has .NET 10, so dotnet tool restore and the Husky hooks cannot run here. The two tests follow the existing LoadConfig helper and could not be run locally for the same reason; CI runs them.

Related to https://github.com/elastic/docs-eng-team/issues/551

🤖 Generated with Claude Code

https://claude.ai/code/session_01RyiyHmDHcUFt8rjMNR8TBm

The changelog init template set filename: timestamp, a value the loader
rejects since the PR number became the only filename strategy, so a
fresh config failed to load. The reference pages still presented
source: github_release, output_products, link_allow_repos and the
timestamp and issue strategies as current, and the evaluate-pr page a
120-character threshold that the service does not have.

Hooks skipped: main pins the .NET 11 SDK and this machine has 10, so
dotnet tool restore cannot run. The change is docs and a config comment
plus one template value; no C# or frontend file is touched.

Related to elastic/docs-eng-team#551

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RyiyHmDHcUFt8rjMNR8TBm
@theletterf
theletterf requested a review from a team as a code owner November 11, 2026 09:41
@theletterf theletterf added the bug label Nov 11, 2026
@theletterf
theletterf requested a review from Mpdreamz November 11, 2026 09:41
Comment thread config/changelog.example.yml Resolved
Comment thread config/changelog.example.yml Resolved
Comment thread docs/data/release-notes/bundle.md Resolved
A test now loads config/changelog.example.yml, embedded in the test
project, through ChangelogConfigurationLoader as shipped and in its
seeded form, so a template value the loader rejects fails CI.

changelog gh-release resolves pull requests from the commit range
between the previous release tag and the requested tag; it never parses
the release notes, so the Release Drafter wording is gone. A profile
product: also drives changelog remove when products: is unset. And
bundle.repo and bundle.owner are still read for CDN entry sourcing,
which has no git fallback, so the reference now says to keep them.

Hooks skipped: main pins the .NET 11 SDK and this machine has 10.

Related to elastic/docs-eng-team#551

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RyiyHmDHcUFt8rjMNR8TBm
Comment thread docs/cli/changelog/cmd-gh-release.md Resolved
@theletterf
theletterf merged commit 75e51ac into main Nov 11, 2026
42 checks passed
@theletterf
theletterf deleted the docs/release-notes-reference-cleanup branch November 11, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants