fix(core): Corrected log formatting for commit information output in CodeFeed

This commit is contained in:
Philipp Kunz 2024-12-13 22:16:47 +01:00
parent 9b46b0d46e
commit daeb38c91c
3 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,10 @@
# Changelog # Changelog
## 2024-12-13 - 1.4.1 - fix(core)
Corrected log formatting for commit information output in CodeFeed
- Fixed formatting issue in commit log output within the CodeFeed class to ensure proper display of timestamps.
## 2024-12-13 - 1.4.0 - feat(CodeFeed) ## 2024-12-13 - 1.4.0 - feat(CodeFeed)
Enhance commit results with human-readable time Enhance commit results with human-readable time

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@foss.global/codefeed', name: '@foss.global/codefeed',
version: '1.4.0', version: '1.4.1',
description: 'a module for creating feeds for code development' description: 'a module for creating feeds for code development'
} }

View File

@ -324,8 +324,7 @@ export class CodeFeed {
console.log(`Processed ${allCommits.length} commits in total.`); console.log(`Processed ${allCommits.length} commits in total.`);
for (const c of allCommits) { for (const c of allCommits) {
console.log(`______________________________________________________ console.log(`______________________________________________________
${c.prettyAgoTime} ${c.prettyAgoTime} ago:
${c.timestamp}
Commit ${c.hash} by ${c.org}/${c.repo} at ${c.timestamp} Commit ${c.hash} by ${c.org}/${c.repo} at ${c.timestamp}
${c.commitMessage} ${c.commitMessage}
Published on npm: ${c.publishedOnNpm} Published on npm: ${c.publishedOnNpm}