1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Tools: Fixed changelog tool

This commit is contained in:
Laurent Cozic
2022-02-23 14:20:38 +00:00
parent 422a5bfa91
commit 8e87e64dea
2 changed files with 2 additions and 2 deletions

View File

@@ -126,7 +126,7 @@ function filterLogs(logs: LogEntry[], platform: Platform) {
if (platform === 'cli' && prefix.indexOf('cli') >= 0) addIt = true; if (platform === 'cli' && prefix.indexOf('cli') >= 0) addIt = true;
if (platform === 'clipper' && prefix.indexOf('clipper') >= 0) addIt = true; if (platform === 'clipper' && prefix.indexOf('clipper') >= 0) addIt = true;
if (platform === 'server' && prefix.indexOf('server') >= 0) addIt = true; if (platform === 'server' && prefix.indexOf('server') >= 0) addIt = true;
if (platform === 'cloud' && prefix.indexOf('cloud') >= 0) addIt = true; if (platform === 'cloud' && (prefix.indexOf('cloud') >= 0 || prefix.indexOf('server'))) addIt = true;
// Translation updates often comes in format "Translation: Update pt_PT.po" // Translation updates often comes in format "Translation: Update pt_PT.po"
// but that's not useful in a changelog especially since most people // but that's not useful in a changelog especially since most people

View File

@@ -94,7 +94,7 @@ export function releaseFinalGitCommands(appName: string, newVersion: string, new
} }
export async function completeReleaseWithChangelog(changelogPath: string, newVersion: string, newTag: string, appName: string, isPreRelease: boolean, repoTagUrl = '') { export async function completeReleaseWithChangelog(changelogPath: string, newVersion: string, newTag: string, appName: string, isPreRelease: boolean, repoTagUrl = '') {
const changelog = (await execCommand2(`node ${rootDir}/packages/tools/git-changelog ${newTag} --publish-format full`, { })).trim(); const changelog = (await execCommand2(`node ${rootDir}/packages/tools/git-changelog ${newTag} --publish-format full`, { showStdout: false })).trim();
const newChangelog = await insertChangelog(newTag, changelogPath, changelog, isPreRelease, repoTagUrl); const newChangelog = await insertChangelog(newTag, changelogPath, changelog, isPreRelease, repoTagUrl);