Commit 834a088
refactor: move changelog fetching into Get-ChangelogFromDiff function
Cleaned up the main logic by encapsulating changelog file fetching
within the Get-ChangelogFromDiff function itself.
Changes:
- Get-ChangelogFromDiff now takes (oldTag, newTag, tmpDir) instead of file paths
- Function handles its own changelog file fetching and returns null if files don't exist
- Main logic is simplified to just call both functions and use whichever succeeds
- Removes duplicate code and makes the interface cleaner
- All 16 tests continue to pass
Benefits:
- Cleaner separation of concerns
- Simpler main logic flow
- Each function is more self-contained
- Easier to understand and maintain
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent c55aed2 commit 834a088
1 file changed
+14
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
143 | 155 | | |
144 | 156 | | |
145 | 157 | | |
| |||
233 | 245 | | |
234 | 246 | | |
235 | 247 | | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | 248 | | |
245 | 249 | | |
246 | 250 | | |
247 | | - | |
248 | | - | |
249 | | - | |
| 251 | + | |
250 | 252 | | |
251 | 253 | | |
252 | 254 | | |
| |||
0 commit comments