feat: draft chart changelogs with Claude Code#98
Draft
llewellyn-sl wants to merge 1 commit intomasterfrom
Draft
Conversation
bebosudo
reviewed
Apr 1, 2026
|
|
||
| - repo: local | ||
| hooks: | ||
| - id: draft-changelog-with-claude |
Member
There was a problem hiding this comment.
I tried it and it works fine!
Maybe the only comment I'd make would be to move the new block in the precommit config file below the check-changelog-updated section, so that the check fails first, then Claude updates the changelog files, so the user is reminded to check what Claude produced? otherwise the check below would be useless
I'd like to test it for a few days with and without the changes and I'll let you know, thanks! 🙂
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a local pre-commit hook that uses Claude Code to draft missing chart
CHANGELOG.mdentries before the existing changelog validation hook runs.How it works
draft-changelog-with-claude, ahead ofcheck-changelog-updatedin.pre-commit-config.yamlcharts/CHANGELOG.mdupdate yet, it:Chart.yamlCHANGELOG.mdcheck-changelog-updated.pyhook remains the source of truth and still fails the commit if a required changelog update is missingBehavior notes
charts/CHANGELOG.mdupdaterequire_serial: trueso it runs deterministically before the validatorgit commitDocs
CONTRIBUTING.mdto mention the new draft-then-validate flowValidation
python3 -m py_compile .github/scripts/draft_changelog_with_claude.py .github/scripts/check_changelog_updated.pyCHANGELOG.mdand the existing validator then passes