// Conventional Changelog configuration for Gitea const conventionalChangelogConfig = { preset: { name: 'conventionalcommits', types: [ { type: 'feat', section: 'Features' }, { type: 'fix', section: 'Bug Fixes' }, { type: 'perf', section: 'Performance Improvements' }, { type: 'revert', section: 'Reverts' }, { type: 'docs', section: 'Documentation', hidden: true }, { type: 'style', section: 'Styles', hidden: true }, { type: 'chore', section: 'Miscellaneous Chores', hidden: true }, { type: 'refactor', section: 'Code Refactoring', hidden: true }, { type: 'test', section: 'Tests', hidden: true }, { type: 'build', section: 'Build System', hidden: true }, { type: 'ci', section: 'Continuous Integration', hidden: true }, ], }, writerOpts: { // Gitea uses /commit/ (singular) not /commits/ (plural) like GitHub commitUrlFormat: '{{host}}/{{owner}}/{{repository}}/commit/{{hash}}', compareUrlFormat: '{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}', issueUrlFormat: '{{host}}/{{owner}}/{{repository}}/issues/{{id}}', }, }; module.exports = conventionalChangelogConfig;