Skip to content

Commit 3efdc5e

Browse files
authored
Update Changelog to include changes for storybook (#5731)
* Update * Disallow "none" change type in changelog * Update change type to minor in JSON
1 parent 0bf3a0e commit 3efdc5e

4 files changed

Lines changed: 24 additions & 0 deletions
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "minor",
3+
"area": "storybook",
4+
"workstream": "Update changelog to include storybook related changes",
5+
"comment": "Update changelog to include storybook related changes",
6+
"packageName": "@azure/communication-react",
7+
"email": "96077406+carocao-msft@users.noreply.github.com",
8+
"dependentChangeType": "minor"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "minor",
3+
"area": "storybook",
4+
"workstream": "Update changelog to include storybook related changes",
5+
"comment": "Update changelog to include storybook related changes",
6+
"packageName": "@azure/communication-react",
7+
"email": "96077406+carocao-msft@users.noreply.github.com",
8+
"dependentChangeType": "minor"
9+
}

common/config/beachball/changelog-config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export const config: BeachballConfig = {
1212
{ value: 'fix', title: 'Bug fix' },
1313
{ value: 'feature', title: 'Feature' },
1414
{ value: 'improvement', title: 'Improvement' },
15+
{ value: 'storybook', title: 'Storybook' },
1516
],
1617
};
1718
const workstreamPrompt = {

common/config/beachball/changelog-custom-renders.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export async function renderPackageChangelog(renderInfo: PackageChangelogRenderI
5656
let features: ChangelogEntry[] = [];
5757
let improvements: ChangelogEntry[] = [];
5858
let bugs: ChangelogEntry[] = [];
59+
let storybookChanges: ChangelogEntry[] = [];
5960
let unknowns: ChangelogEntry[] = [];
6061

6162
changelog = renderHeader(renderInfo) + '\n\n';
@@ -64,6 +65,7 @@ export async function renderPackageChangelog(renderInfo: PackageChangelogRenderI
6465
features = features.concat(filterByArea(entries, 'feature'));
6566
improvements = improvements.concat(filterByArea(entries, 'improvement'));
6667
bugs = bugs.concat(filterByArea(entries, 'fix'));
68+
storybookChanges = storybookChanges.concat(filterByArea(entries, 'storybook'));
6769
unknowns = unknowns.concat(filterUnknown(entries));
6870
}
6971
}
@@ -77,6 +79,9 @@ export async function renderPackageChangelog(renderInfo: PackageChangelogRenderI
7779
if (bugs.length > 0) {
7880
changelog += await renderSubsection('Bug Fixes', bugs);
7981
}
82+
if (storybookChanges.length > 0) {
83+
changelog += await renderSubsection('Storybook Changes', storybookChanges);
84+
}
8085
if (unknowns.length > 0) {
8186
changelog += await renderSubsection('Other Changes', unknowns);
8287
}

0 commit comments

Comments
 (0)