mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Tools: Fixed git-changelog
This commit is contained in:
parent
30671e7a20
commit
bdbb362644
@ -83,7 +83,12 @@ async function gitLog(sinceTag: string) {
|
|||||||
|
|
||||||
async function gitTags() {
|
async function gitTags() {
|
||||||
const lines: string = await execCommand('git tag --sort=committerdate');
|
const lines: string = await execCommand('git tag --sort=committerdate');
|
||||||
return lines.split('\n').map(l => l.trim()).filter(l => !!l);
|
const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'base' });
|
||||||
|
return lines
|
||||||
|
.split('\n')
|
||||||
|
.map(l => l.trim())
|
||||||
|
.filter(l => !!l)
|
||||||
|
.sort((a, b) => collator.compare(a, b));
|
||||||
}
|
}
|
||||||
|
|
||||||
function platformFromTag(tagName: string): Platform {
|
function platformFromTag(tagName: string): Platform {
|
||||||
|
Loading…
Reference in New Issue
Block a user