mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
ci: Add scope to changelog (#1672)
This commit is contained in:
parent
c900d09cf8
commit
8cda2c164d
1 changed files with 35 additions and 2 deletions
|
@ -18,9 +18,42 @@ module.exports = {
|
|||
[
|
||||
"@semantic-release/release-notes-generator",
|
||||
{
|
||||
"preset": "conventionalcommits",
|
||||
preset: "conventionalcommits",
|
||||
presetConfig: {
|
||||
types: [
|
||||
{ type: "feat", section: "Features" },
|
||||
{ type: "fix", section: "Bug Fixes" },
|
||||
{ type: "docs", section: "Documentation" },
|
||||
{ type: "style", section: "Styles" },
|
||||
{ type: "refactor", section: "Code Refactoring" },
|
||||
{ type: "perf", section: "Performance Improvements" },
|
||||
{ type: "test", section: "Tests" },
|
||||
{ type: "build", section: "Build System" },
|
||||
{ type: "ci", section: "Continuous Integration" },
|
||||
{ type: "chore", section: "Chores" },
|
||||
{ type: "revert", section: "Reverts" },
|
||||
]
|
||||
},
|
||||
writerOpts: {
|
||||
commitPartial: "* {{subject}} ([{{author.name}}]({{~@root.host}}/{{~@root.owner}}/{{~@root.repository}}/commit/{{hash}}))\n",
|
||||
transform: (commit, context) => {
|
||||
if (commit.author.name === "semantic-release-bot") return;
|
||||
const types = {
|
||||
feat: "Features",
|
||||
fix: "Bug Fixes",
|
||||
docs: "Documentation",
|
||||
style: "Styles",
|
||||
refactor: "Code Refactoring",
|
||||
perf: "Performance Improvements",
|
||||
test: "Tests",
|
||||
build: "Build System",
|
||||
ci: "Continuous Integration",
|
||||
chore: "Chores",
|
||||
revert: "Reverts",
|
||||
}
|
||||
commit.type = types[commit.type];
|
||||
return commit;
|
||||
},
|
||||
commitPartial: "* {{#if scope}}**{{scope}}:** {{/if}}{{subject}} ([{{author.name}}]({{~@root.host}}/{{~@root.owner}}/{{~@root.repository}}/commit/{{hash}}))\n",
|
||||
mainTemplate: `
|
||||
{{#each commitGroups}}
|
||||
{{#if title}}
|
||||
|
|
Loading…
Reference in a new issue