You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Handle null bullet point detection in update-changelog script (#125)
* fix: Handle null bullet point detection in update-changelog script
The script was failing when trying to detect bullet point characters
in changelogs that contained no existing bullet points. This occurred
because the Where-Object filter returned null, and calling .Trim() on
null caused a "You cannot call a method on a null-valued expression" error.
Fixed by wrapping the variable in quotes to convert null to empty string
before calling .Trim(), which effectively defaults to using "-" as the
bullet point character.
Added test case for this scenario to prevent regression.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* docs: Add changelog entry for null bullet point fix
---------
Co-authored-by: Claude <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,7 @@
71
71
72
72
### Fixes
73
73
74
+
- Updater - Fix null reference error when changelog has no existing bullet points ([#125](https://github.com/getsentry/github-workflows/pull/125))
74
75
- Updater - Fix bullet-point resolution when plain text precedes bullet points ([#123](https://github.com/getsentry/github-workflows/pull/123))
75
76
- Improve changelog generation for non-tagged commits and edge cases ([#115](https://github.com/getsentry/github-workflows/pull/115))
0 commit comments