fix(core): Refine logging format in CodeFeed class

This commit is contained in:
Philipp Kunz 2024-12-14 00:32:34 +01:00
parent 6ca6b37b1d
commit 166b289eb2
3 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,10 @@
# Changelog # Changelog
## 2024-12-14 - 1.5.1 - fix(core)
Refine logging format in CodeFeed class
- Modified console log format in fetchAllCommitsFromInstance method for better readability.
## 2024-12-14 - 1.5.0 - feat(core) ## 2024-12-14 - 1.5.0 - feat(core)
Refactor TypeScript interfaces and improve module exports Refactor TypeScript interfaces and improve module exports

View File

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

View File

@ -279,9 +279,9 @@ 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} ago: ${c.prettyAgoTime} ago:
Commit ${c.hash} by ${c.org}/${c.repo} at ${c.timestamp} ${c.org}/${c.repo}
${c.commitMessage} ${c.commitMessage}
Published on npm: ${c.publishedOnNpm} Published on npm: ${c.publishedOnNpm}
`); `);