mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
* feat: switch to biome, apply formatting, shellcheck * chore: apply cr comments * chore: few config tweaks, shellcheck hook now py-based * chore: lint fixes and pr comments * chore(lint): megalinter, and other fixes Signed-off-by: Ismo Vuorinen <ismo@ivuorinen.net>
37 lines
1.3 KiB
JavaScript
37 lines
1.3 KiB
JavaScript
module.exports = {
|
|
types: [
|
|
{ types: ['feat', 'feature', 'Feat'], label: '🎉 New Features' },
|
|
{ types: ['fix', 'bugfix', 'Fix'], label: '🐛 Bugfixes' },
|
|
{ types: ['improvements', 'enhancement'], label: '🔨 Improvements' },
|
|
{ types: ['perf'], label: '🏎️ Performance Improvements' },
|
|
{ types: ['build', 'ci'], label: '🏗️ Build System' },
|
|
{ types: ['refactor'], label: '🪚 Refactors' },
|
|
{ types: ['doc', 'docs'], label: '📚 Documentation Changes' },
|
|
{ types: ['config'], label: '🪛 Configuration Changes' },
|
|
{ types: ['test', 'tests'], label: '🔍 Tests' },
|
|
{ types: ['style', 'codestyle', 'lint'], label: '💅 Code Style Changes' },
|
|
{ types: ['chore', 'Chore', 'deps', 'Deps'], label: '🧹 Chores' },
|
|
{ types: ['other', 'Other'], label: 'Other Changes' },
|
|
],
|
|
|
|
excludeTypes: [],
|
|
|
|
renderTypeSection: (label, commits) => {
|
|
let text = `\n## ${label}\n\n`
|
|
|
|
commits.forEach((commit) => {
|
|
const scope = commit.scope ? `**${commit.scope}:** ` : ''
|
|
text += `- ${scope}${commit.subject}\n`
|
|
})
|
|
|
|
return text
|
|
},
|
|
|
|
renderChangelog: (release, changes) => {
|
|
const now = new Date()
|
|
const d = now.toISOString().substring(0, 10)
|
|
const header = `# ${release} - ${d}\n`
|
|
return `${header}${changes}\n\n`
|
|
},
|
|
}
|