mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-27 08:21:03 +02:00
Tools: Fixed git changelog tool
This commit is contained in:
parent
9d9420a35c
commit
571147acbb
@ -92,7 +92,7 @@ function platformFromTag(tagName: string): Platform {
|
||||
}
|
||||
|
||||
function filterLogs(logs: LogEntry[], platform: Platform) {
|
||||
const output = [];
|
||||
const output: LogEntry[] = [];
|
||||
const revertedLogs = [];
|
||||
|
||||
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
||||
@ -126,7 +126,7 @@ function filterLogs(logs: LogEntry[], platform: Platform) {
|
||||
if (platform === 'cli' && prefix.indexOf('cli') >= 0) addIt = true;
|
||||
if (platform === 'clipper' && prefix.indexOf('clipper') >= 0) addIt = true;
|
||||
if (platform === 'server' && prefix.indexOf('server') >= 0) addIt = true;
|
||||
if (platform === 'cloud' && (prefix.indexOf('cloud') >= 0 || prefix.indexOf('server'))) addIt = true;
|
||||
if (platform === 'cloud' && (prefix.indexOf('cloud') >= 0 || prefix.indexOf('server') >= 0)) addIt = true;
|
||||
|
||||
// Translation updates often comes in format "Translation: Update pt_PT.po"
|
||||
// but that's not useful in a changelog especially since most people
|
||||
@ -137,6 +137,11 @@ function filterLogs(logs: LogEntry[], platform: Platform) {
|
||||
addIt = false;
|
||||
}
|
||||
|
||||
// Remove duplicate messages
|
||||
if (output.find(l => l.message === log.message)) {
|
||||
addIt = false;
|
||||
}
|
||||
|
||||
if (addIt) output.push(log);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user