From 3502a661eaa250d6c0630ee4596a06b6567a90b6 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sat, 14 Dec 2024 00:47:24 +0100 Subject: [PATCH] fix(core): Fix filtering logic for returning only tagged commits --- changelog.md | 5 +++++ ts/00_commitinfo_data.ts | 2 +- ts/index.ts | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index d5e5f03..34689a9 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2024-12-14 - 1.5.3 - fix(core) +Fix filtering logic for returning only tagged commits + +- Ensure `allCommits` is filtered to only include commits with 'tagged' status before returning. + ## 2024-12-14 - 1.5.2 - fix(core) Ensure stability of core functionalities. diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 62c2795..2276768 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@foss.global/codefeed', - version: '1.5.2', + version: '1.5.3', description: 'a module for creating feeds for code development' } diff --git a/ts/index.ts b/ts/index.ts index 43d533a..f476c46 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -286,6 +286,9 @@ export class CodeFeed { Published on npm: ${c.publishedOnNpm} `); } + + allCommits = allCommits.filter(commitArg => commitArg.tagged); + return allCommits; } } \ No newline at end of file