v0.3.21 - Critical Parser Fix
Critical Fix 🚨
This is a patch release fixing a critical bug introduced in v0.3.19 that prevented PR comments from displaying violation details.
What Was Broken
- Parser couldn't extract Current text and Suggested fix from LLM responses
- PR comments showed violations without the actual problematic text or fixes
- Caused by mismatch: prompts instructed LLM to use
~~~markdown
fences, but parser only looked for\
``markdown`
What's Fixed
- ✅ Parser now accepts both backtick (```) and tilde (~~~) code fences
- ✅ Regex patterns updated:
(?:\
``|~~~)` matches either fence type - ✅ PR comments now correctly display Current text and Suggested fix sections
Impact
- Severity: Critical - affected all PR comment generation
- Introduced: v0.3.19 (when we switched to tilde fences)
- Fixed: v0.3.21
Recommendation: Update immediately if using v0.3.19 or v0.3.20
Full Changelog: https://github.com/QuantEcon/action-style-guide/blob/main/CHANGELOG.md