Commit 6af5c2d
fix: improve changelog generation for non-tagged commits and edge cases (#115)
* fix: improve changelog generation for non-tagged commits and edge cases
- Switch from git clone to GitHub raw API for better performance
- Support commit SHAs as OldTag/NewTag parameters
- Use diff-based approach for accurate changelog extraction
- Handle repositories without existing changelog files
- Add proper error handling and cleanup
- Improve test coverage for edge cases
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: improve log message for found changelog files
* fix: correct PowerShell script exit code handling in get-changelog.ps1
- Restructure script to use result variable instead of early returns
- Ensure proper exit handling in try/catch/finally blocks
- Fix CI failures caused by exit code 1 from PowerShell script
- All tests continue to pass (62/62 tests passing)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* docs: add changelog entry for changelog generation improvements
- Add entry for PR #115 to Unreleased section
- Addresses Danger bot requirement for changelog updates
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Revert "fix: correct PowerShell script exit code handling in get-changelog.ps1"
This reverts commit 445f392.
* fix: handle git diff exit codes properly in PowerShell
- Add proper error action preference settings to match CI environment
- Handle git diff exit code 1 (differences found) as expected behavior
- Use explicit exit 0 to ensure clean script termination
- Fixes updater-pr-creation CI failures with PSNativeCommandErrorActionPreference
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: improve logging for changelog diff generation and cleanup process
* fix: add logging for changelog length in dependency updater action
* tmp
* fix: clean up logging and return values in changelog scripts
* docs: fix changelog link format to match established convention
- Use full markdown link format [#115](url) instead of (#115)
- Matches existing changelog entry format
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* test: restore proper truncation test with valid tag range
- Change test range from 1.0.0-2.4.0 (invalid) to 1.60.0-2.32.0 (valid)
- Ensure truncation test actually validates the truncation functionality
- Range 1.60.0 to 2.32.0 generates >60k characters and triggers truncation
- All 11 tests continue to pass
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: address valid review comments for robustness
- Fix diff checking logic: use string conversion for proper emptiness check
- Fix truncation safety: handle case when no newlines exist in content
- Add graceful fallback to direct truncation when LastIndexOf returns -1
- All tests continue to pass (11/11 tests passing)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 054504c commit 6af5c2d
File tree
3 files changed
+266
-112
lines changed- updater
- scripts
- tests
3 files changed
+266
-112
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 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 | + | |
22 | 50 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
27 | 55 | | |
28 | 56 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
32 | 62 | | |
33 | 63 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 64 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
55 | 77 | | |
56 | 78 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
61 | 87 | | |
62 | | - | |
63 | 88 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 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 | + | |
81 | 133 | | |
82 | 134 | | |
| 135 | + | |
83 | 136 | | |
84 | | - | |
| 137 | + | |
85 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
86 | 142 | | |
87 | 143 | | |
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 | 144 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
122 | 153 | | |
123 | | - | |
124 | 154 | | |
125 | 155 | | |
126 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
0 commit comments