Skip to content

Commit

Permalink
fix output
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikuni17 committed Nov 14, 2024
1 parent b1dddbd commit 9636803
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/release-notes/release-note-output.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ interface Props {
export const ReleaseNoteOutput: FC<Props> = ({ prs, version: ver }) => {
const config = useActiveConfig();
const version = ver.replace(/^v(.*)$/, '$1');
const isPatchVersion = semver.patch(version) !== 0;
const isServerless = ver === 'serverless';
const isPatchVersion = isServerless ? false : semver.patch(version) !== 0;

const renderedGroups = useMemo(() => {
const grouped = groupPrs(prs, { includeFeaturesInEnhancements: true });
Expand Down Expand Up @@ -54,14 +55,15 @@ export const ReleaseNoteOutput: FC<Props> = ({ prs, version: ver }) => {
version,
minorVersion: version.replace(/\.\d+$/, ''),
prs: renderedGroups,
nextMajorVersion: `${semver.major(version) + 1}.0.0`,
nextMajorVersion: isServerless ? '' : `${semver.major(version) + 1}.0.0`,
isPatchRelease: isPatchVersion,
}
).trim(),
[
config.templates.pages.patchReleaseNotes,
config.templates.pages.releaseNotes,
isPatchVersion,
isServerless,
renderedGroups,
version,
]
Expand Down

0 comments on commit 9636803

Please sign in to comment.