Commit 24496cd
Add changelog guidelines to CLAUDE.md (#1867)
* Add changelog guidelines to CLAUDE.md
Following the Shakapacker PR #742 guidelines, this adds comprehensive
changelog documentation requirements to CLAUDE.md:
- Changelog entries required for user-visible changes only (features,
bug fixes, breaking changes, deprecations, performance improvements)
- No entries needed for linting, formatting, internal refactoring, tests,
or documentation fixes
- Format requirements: PR links, author links, consistent formatting
- Breaking changes: bold formatting with migration guide links
- Version release: update version diff links
This ensures consistent, high-quality changelog maintenance across
the project.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* Fix changelog guidelines: PR format and automation reference
Fixes identified in code review:
1. PR link format: Changed from `[PR #123]` to `[PR 1818]` (no hash)
- Analysis shows 165 entries without hash vs only 7 with hash
- Aligns with actual project standard
2. Added reference to `bundle exec rake update_changelog`
- This is the existing automation for updating version headers
- Mentioned in CHANGELOG.md line 18 but was missing from guidelines
3. Verified file ends with newline (required per CLAUDE.md)
These changes ensure guidelines match actual usage and reference
existing automation tools.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* Enhance changelog guidelines with comprehensive documentation
Following code review recommendations, this adds:
1. **Section header guidance**: Documents both standard keepachangelog.com
headers (Added, Changed, Deprecated, Removed, Fixed, Security) and
project-specific headers (Breaking Changes, New Features, Bug Fixes,
Security Enhancements, API Improvements, etc.)
2. **Complete format examples**: Three real-world examples showing:
- Simple entry format
- Breaking change with migration guide
- Entry with sub-bullets
All examples verified against actual CHANGELOG.md patterns
3. **Cross-reference**: Added reference to CHANGELOG.md lines 15-18
for contributor guidelines and keepachangelog.com format
4. **Better organization**: Restructured into subsections (Section Headers,
Format Requirements, Entry Format Examples) for easier reference
These enhancements make the guidelines actionable and ensure consistent,
high-quality changelog entries.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* Simplify changelog section to conserve space
Reduces the changelog section from ~50 lines to 5 concise bullets:
- Consolidates what to include/exclude into one line each
- Provides format example inline instead of separate section
- References CHANGELOG.md lines 15-18 for full guidelines
- Points to existing `bundle exec rake update_changelog` task
- Includes grep command to view real formatting examples
This saves space while making the guidelines more actionable by
pointing developers to existing tools and real examples rather
than duplicating information.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* Add /update-changelog command for guided changelog updates
Adds comprehensive slash command based on Shakapacker's implementation
with React on Rails-specific improvements:
**New slash command**: `/update-changelog`
- Provides guided workflow for adding changelog entries
- Ensures correct formatting (no hash in PR numbers)
- Validates user-visible vs non-user-visible changes
- Handles version boundaries and beta releases
- Includes real examples from the codebase
- Documents both standard and custom section headers
**Improvements over Shakapacker version**:
- Updated PR link format (no hash symbol)
- Documents all React on Rails custom section headers
- References `bundle exec rake update_changelog` for version management
- Includes actual examples from CHANGELOG.md
- Added grep command for viewing real formatting examples
**Updated CLAUDE.md**:
- References `/update-changelog` command for guided updates
- Separates version management (rake task) from entry creation (command)
- Maintains concise 6-bullet format
This makes changelog updates consistent and reduces errors by providing
an interactive guided process with comprehensive documentation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* Fix update-changelog command: remove redundancy and fix formatting
Addresses code review feedback:
1. **Removed redundant section headers**:
- "New Features" (redundant with standard "Added")
- "Bug Fixes" (redundant with standard "Fixed")
- "Security Enhancements" (redundant with standard "Security")
- "Code Improvements" (internal, not user-visible)
2. **Added "Improved" to standard headers** (used 9 times in CHANGELOG.md)
3. **Emphasized standard headers**: Updated guidance to prefer standard
keepachangelog.com headers and use custom ones sparingly
4. **Fixed broken markdown formatting**:
- Corrected triple/quadruple backtick issues in Breaking Change example
- Removed nested code blocks that broke rendering
- Simplified code examples within the markdown example
5. **Final header list**:
- Standard: Added, Changed, Deprecated, Removed, Fixed, Security, Improved
- Custom: Breaking Changes, API Improvements, Developer Experience,
Generator Improvements, Performance, Pro License Features
This reduces confusion and ensures the command guides developers to use
consistent, standard headers while keeping legitimate project-specific
headers for special cases.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude <[email protected]>1 parent 7825688 commit 24496cd
2 files changed
+251
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
44 | 53 | | |
45 | 54 | | |
46 | 55 | | |
| |||
0 commit comments