+
Skip to content

v0.3.21 - Critical Parser Fix

Choose a tag to compare

@mmcky mmcky released this 11 Oct 00:27
· 3 commits to main since this release

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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载