Skip to content

Conversation

@adamtheturtle
Copy link
Member

@adamtheturtle adamtheturtle commented Jan 3, 2026

Use YAML block scalar syntax for replace field to fix zizmor warning.


Note

Updates the release workflow to use a YAML block scalar for the gha-find-replace replace value in release.yml.

  • Changes replace to a block scalar that inserts the computed version header and underline with a trailing newline when updating CHANGELOG.rst

Written by Cursor Bugbot for commit 809bf10. This will update automatically on new commits. Configure here.

@adamtheturtle adamtheturtle enabled auto-merge (squash) January 3, 2026 08:52
replace: "Next\n----\n\n${{ steps.calver.outputs.release }}\n${{ steps.changelog_underline.outputs.underline\
\ }}"
replace: |-
Next\n----\n\n${{ steps.calver.outputs.release }}\n${{ steps.changelog_underline.outputs.underline }}\n
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Block scalar doesn't interpret \n as newline characters

The change from a double-quoted string to a literal block scalar (|-) breaks escape sequence processing. In the original double-quoted string, \n was interpreted as actual newlines. With |-, the \n sequences become literal backslash-n characters. Since find still uses a double-quoted string where \n means newline, the replacement will insert literal \n text into CHANGELOG.rst instead of actual line breaks, corrupting the file formatting.

Fix in Cursor Fix in Web

@adamtheturtle adamtheturtle merged commit c30848e into main Jan 3, 2026
7 checks passed
@adamtheturtle adamtheturtle deleted the fix-zizmor-warning branch January 3, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants