Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 2ccbe71

Browse files
committed
- update script that generates changeset to use title if the body of the pr is empy
1 parent 42210c3 commit 2ccbe71

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/generate-changeset.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ async function generateChangeset() {
156156
const changeType = extractChangeType(title);
157157
const breaking = isBreakingChange(title, body);
158158

159+
// Use PR title as fallback description if body is empty
160+
const description = body.trim() || title.trim();
161+
159162
// Store the complete title in the changeset
160163
const changesetPath = await createChangeset({
161164
title: title.trim(),
@@ -164,7 +167,7 @@ async function generateChangeset() {
164167
type: title.split(':')[0].trim(),
165168
breaking,
166169
branch,
167-
description: body
170+
description
168171
});
169172

170173
console.log(`Changeset created: ${changesetPath}`);

0 commit comments

Comments
 (0)