Skip to content

Commit

Permalink
build: added pipeline section to releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Tormak9970 committed Jun 3, 2023
1 parent 4b18dbe commit 1ab3deb
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/custom-changelog/dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function calcTrueNewVersionFromLog(currentVersion, changelog) {
if (logLine.includes("* feat:")) {
numFeats++;
}
else if (logLine.includes("* fix:")) {
else if (logLine.includes("* fix:") || logLine.includes("* build:")) {
numFixes++;
}
});
Expand All @@ -256,19 +256,24 @@ function filterChangeLog(changelog) {
let output = [];
let fixes = [];
let feats = [];
let builds = [];
changelog.split("\n").forEach((logLine, i) => {
core.info(`LogLine ${i}: ${logLine}`);
if (logLine.includes("* feat:")) {
feats.push(logLine);
}
else if (logLine.includes("* fix:")) {
fixes.push(logLine);
}
if (logLine.includes("* feat:")) {
feats.push(logLine);
}
else if (logLine.includes("* fix:")) {
fixes.push(logLine);
}
else if (logLine.includes("* build:")) {
fibuildsxes.push(logLine);
}
});
if (feats.length > 0)
output.push("New Features:", ...feats, "");
output.push("New Features:", ...feats, "");
if (fixes.length > 0)
output.push("Bug Fixes:", ...fixes, "");
output.push("Bug Fixes:", ...fixes, "");
if (builds.length > 0)
output.push("Build Pipeline Improvements:", ...builds, "");
return output.join("\n");
}
function run() {
Expand Down

0 comments on commit 1ab3deb

Please sign in to comment.