Constrain release-notes doc links to existing files - #26
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Cherry-pick CreatedA cherry-pick PR to Please review and merge if this change should also be in If the cherry-pick is not needed, close the PR. |
The v2.6.1 release notes linked to
docs/overlay.md, which does not exist (overlay docs live indocs/curation.md) — the AI notes generator constructed a plausible filename instead of a real one. The published release body has already been corrected in place.This PR prevents the next occurrence: the notes-generation step now reads the actual
docs/directory listing at generation time, injects it into the prompt as the only valid link targets, and the link rule requires filenames copied verbatim from that list instead of "files that appear in the diff" (which the model cannot reliably verify).Test plan
publish-release.yml; no library code touched