Skip to content

Commit

Permalink
chore: omit commit SHA from changelog (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
sparten11740 authored Nov 18, 2024
1 parent 294194f commit a5e7896
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const esmConfigs = isModule
: []

module.exports = {
ignorePatterns: ['**/coverage/**'],
extends: [
'@exodus/eslint-config/javascript-babel',
'plugin:@exodus/ban-flow/recommended',
Expand Down Expand Up @@ -70,5 +71,11 @@ module.exports = {
'no-restricted-imports': 'off',
},
},
{
files: ['changelog.config.js'],
rules: {
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
},
},
],
}
23 changes: 23 additions & 0 deletions changelog.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const config = require('conventional-changelog-conventionalcommits')

const commitPartial = `
* {{header}}
`

module.exports = config({
types: [
{ type: 'feat', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'perf', section: 'Performance' },
{ type: 'license', section: 'License' },
{ type: 'chore', hidden: true },
{ type: 'docs', hidden: true },
{ type: 'style', hidden: true },
{ type: 'refactor', hidden: true },
{ type: 'test', hidden: true },
],
}).then((preset) => {
// eslint-disable-next-line @exodus/mutable/no-param-reassign-prop-only
preset.conventionalChangelog.writerOpts.commitPartial = commitPartial
return preset
})
3 changes: 2 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"packages": ["modules/*", "libraries/*", "features/*"],
"version": "independent",
"npmClient": "yarn",
"changelogPreset": "conventionalcommits"
"changelogPreset": "./changelog.config.js"
}

0 comments on commit a5e7896

Please sign in to comment.