Files
Roo-Code/.changeset/changelog-config.js
2024-12-18 15:32:51 -08:00

25 lines
596 B
JavaScript

// Doesn't fully work but '.github/scripts/overwrite_changeset_changelog.py' forces the changelog to be formatted in GHA
const getReleaseLine = async (changeset) => {
const [firstLine] = changeset.summary
.split('\n')
.map(l => l.trim())
.filter(Boolean);
return `- ${firstLine}`;
};
const getDependencyReleaseLine = async () => {
return '';
};
const getReleaseSummary = async (release) => {
return `## [${release.newVersion}]\n\n`;
};
const changelogFunctions = {
getReleaseLine,
getDependencyReleaseLine,
getReleaseSummary,
};
module.exports = changelogFunctions;