Repository navigation
release notes prompt when making release - #397
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
| --title "$VERSION" \ | ||
| --notes "$(printf 'Install:\n\n```sh\ncurl -fsSL %s | bash\n```\n\nPinned to this version:\n\n```sh\ncurl -fsSL %s | bash\n```\n' \ | ||
| "${{ steps.publish.outputs.latest }}" "${{ steps.publish.outputs.pinned }}")" | ||
| printf %s "$NOTES_INPUT" | jq -Rjs 'if startswith("\"") then (try fromjson catch .) else . end' > /tmp/notes.md |
There was a problem hiding this comment.
🟡 Parser errors in published release notes
When NOTES_INPUT starts with a quoted feature name followed by prose, jq publishes its parse error instead of the notes. The Pixel release step uses the same fallback.
Learn more
Both workflows accept a free-text notes field from the manual release form. The Pixel release step and the terminal-browser release step first try to decode any input starting with a double quote as JSON. When decoding fails, jq passes the error string to catch, so catch . writes that error rather than the original input. GitHub receives that file as the release body, with the usual npm or install text appended.
Example: Enter "Quick start" now works on Linux. in the release form. The published body begins with an Invalid literal message rather than the sentence.
Recommended fix: In both workflows, save the incoming string with . as $raw before attempting fromjson, then use catch $raw. This preserves the original notes on a parse error without changing how valid JSON-encoded notes are decoded.
Was this helpful? React with 👍 or 👎 to provide feedback.
Adds the ability to set release notes on release, resolves #397