Skip to content

ci: add NEWS.md entry check for chart version bumps#798

Open
astayleraz wants to merge 2 commits intomainfrom
ci/check-news-md-entry
Open

ci: add NEWS.md entry check for chart version bumps#798
astayleraz wants to merge 2 commits intomainfrom
ci/check-news-md-entry

Conversation

@astayleraz
Copy link
Contributor

Summary

  • Add tools/dev/check-news-entries.sh — verifies that charts with a version bump have a corresponding ## X.Y.Z heading in NEWS.md
  • Add a CI step in the test job to run this check on PRs

Motivation

Every chart change already requires a version bump (enforced by ct lint). But there's no check that the bump has a changelog entry in NEWS.md, so it's easy to forget. This happened in #795 and was caught manually after merge.

The check is simple: for each chart directory, compare the Chart.yaml version against origin/main. If it changed, verify NEWS.md contains a ## <version> heading. Runs on PRs only (skipped on main pushes since the version is already released at that point).

How it works

$ ./tools/dev/check-news-entries.sh main

# If NEWS.md entry is missing:
Error: charts/rstudio-workbench/NEWS.md is missing an entry for version 0.10.9.
  Add a '## 0.10.9' section to charts/rstudio-workbench/NEWS.md.

# If all good:
All changed charts have NEWS.md entries.

Test plan

  • Tested locally: script correctly detects missing NEWS.md entry (exits 1 with helpful message)
  • Tested locally: script passes when entry exists (exits 0)
  • Script handles charts without NEWS.md file
  • Script skips charts with no version change
  • CI runs successfully on this PR (no chart version bumped, so check is a no-op)

🤖 Generated with Claude Code

Add a CI check that verifies changed charts with a version bump also
have a corresponding heading in NEWS.md. This prevents changelog
entries from being forgotten when releasing chart updates.

The check runs on PRs only (not main) and complements the existing
chart-testing version bump requirement — if ct lint already requires
a version bump for every chart change, then every bump should have
a changelog entry.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@astayleraz astayleraz requested review from a team as code owners March 7, 2026 02:36
@astayleraz astayleraz requested a review from dbkegley March 7, 2026 02:42
…TING.md

- Add NEWS.md requirement to CONTRIBUTING.md under "Assumptions / Common
  Dev Workflows" so contributors know about it before hitting CI
- Improve the error message to show the version diff and an example of
  what to add

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant