release-with-ease 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/release-with-ease.js +2 -1
- package/package.json +1 -1
package/bin/release-with-ease.js
CHANGED
|
@@ -107,7 +107,8 @@ async function askClaudeForRelease(commits) {
|
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
109
|
const data = await res.json();
|
|
110
|
-
const
|
|
110
|
+
const raw = (data.content?.[0]?.text || '').trim();
|
|
111
|
+
const content = raw.replace(/^```(?:json)?\s*\n?/, '').replace(/\n?```\s*$/, '');
|
|
111
112
|
|
|
112
113
|
const parsed = JSON.parse(content);
|
|
113
114
|
if (!parsed.bump || !['major', 'minor', 'patch'].includes(parsed.bump)) {
|