fix(core): Fix sorting order of tagged commits by timestamp
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@foss.global/codefeed',
|
||||
version: '1.6.1',
|
||||
version: '1.6.2',
|
||||
description: 'The @foss.global/codefeed module is designed for generating feeds from Gitea repositories, enhancing development workflows by processing commit data and repository activities.'
|
||||
}
|
||||
|
@@ -326,7 +326,7 @@ export class CodeFeed {
|
||||
|
||||
console.log(`Processed ${allCommits.length} commits in total.`);
|
||||
|
||||
allCommits = allCommits.filter(commitArg => commitArg.tagged);
|
||||
allCommits = allCommits.filter(commitArg => commitArg.tagged).sort((a, b) => b.timestamp.localeCompare(a.timestamp));
|
||||
|
||||
console.log(`Filtered to ${allCommits.length} commits with tagged statuses.`);
|
||||
|
||||
|
Reference in New Issue
Block a user