Skip to content

Commit 2dc7593

Browse files
committed
Colored no commit msg log yellow, condensed final summary routine ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions/tree/main/utils/bump]
1 parent ad84cbe commit 2dc7593

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

utils/bump/chatbots.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,15 @@
109109
!config.noPush ? '/pushed' : '' } to GitHub`)
110110
} catch (err) { bump.log.error('Git operation failed: ' + err.message) }
111111
} else {
112-
bump.log.info(`\nNo commit message provided. Skipping git operations.`)
112+
bump.log.working(`\nNo commit message provided. Skipping git operations.`)
113113
bump.log.info(`TIP: Use --commit-msg "msg" or -m "msg" to commit changes.`)
114114
}
115115

116116
// Final SUMMARY log
117117
console.log('') // line break
118-
Object.entries(bumpedChatbots).forEach(([chatbotFile, { oldVer, newVer }]) => {
119-
const chatbotName = path.basename(chatbotFile, '.user.js')
120-
console.log(` ± ${chatbotName}.user.js ${
118+
Object.entries(bumpedChatbots).forEach(([chatbotFile, { oldVer, newVer }]) =>
119+
console.log(` ± ${path.basename(chatbotFile)} ${
121120
bump.colors.bw}v${oldVer}${bump.colors.nc}${bump.colors.bg}v${newVer}${bump.colors.nc}`)
122-
})
121+
)
123122

124123
})()

0 commit comments

Comments
 (0)