Skip to content

Commit

Permalink
Merge pull request #12 from wemogy/main
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
SebastianKuesters authored Mar 22, 2024
2 parents 01e34a2 + f6745f4 commit bc8d28f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
9 changes: 8 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29106,7 +29106,14 @@ class ReleaseNotesGenerator {
releaseNotes += `- ${issue.title} (#${issue.number})\n`;
});
}
if (enhancements.length === 0 && bugs.length === 0) {
const others = issues.filter((issue) => !issue.labels.includes("enhancement") && !issue.labels.includes("bug"));
if (others.length > 0) {
releaseNotes += "### Others 📚\n\n";
others.forEach((issue) => {
releaseNotes += `- ${issue.title} (#${issue.number})\n`;
});
}
if (enhancements.length === 0 && bugs.length === 0 && others.length === 0) {
releaseNotes += "No enhancements or bug fixes in this release.";
}
return releaseNotes;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion src/ReleaseNotesGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@ export default class ReleaseNotesGenerator {
});
}

if (enhancements.length === 0 && bugs.length === 0) {
const others = issues.filter(
(issue) =>
!issue.labels.includes("enhancement") && !issue.labels.includes("bug")
);

if (others.length > 0) {
releaseNotes += "### Others 📚\n\n";
others.forEach((issue) => {
releaseNotes += `- ${issue.title} (#${issue.number})\n`;
});
}

if (enhancements.length === 0 && bugs.length === 0 && others.length === 0) {
releaseNotes += "No enhancements or bug fixes in this release.";
}

Expand Down

0 comments on commit bc8d28f

Please sign in to comment.