Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update change log rules #756

Open
wants to merge 1 commit into
base: mainline
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 130 additions & 16 deletions .releaserc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ module.exports = {
{ type: "chore", section: "Maintenance" },
{ type: "docs", section: "Maintenance" },
{ type: "revert", section: "Fixes" },
{ type: "style", hidden: true },
{ type: "refactor", hidden: true },
{ type: "perf", hidden: true },
{ type: "test", hidden: true },
{ type: "style", section: "Miscellaneous" },
{ type: "refactor", section: "Miscellaneous" },
{ type: "perf", section: "Miscellaneous" },
{ type: "test", section: "Miscellaneous" },
],
},
releaseRules: [
Expand All @@ -67,20 +67,134 @@ module.exports = {
"@semantic-release/release-notes-generator",
{
preset: "conventionalcommits",
parserOpts: {
noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES"],
},
presetConfig: {
types: [
{ type: "feat", section: "Features" },
{ type: "fix", section: "Fixes" },
{ type: "chore", section: "Maintenance" },
{ type: "docs", section: "Maintenance" },
{ type: "revert", section: "Fixes" },
{ type: "style", hidden: true },
{ type: "refactor", hidden: true },
{ type: "perf", hidden: true },
{ type: "test", hidden: true },
{
type: "feat",
scope: "dafny",
section: "Features -- All Languages",
hidden: false,
},
{
type: "feat",
scope: "dotnet",
section: "Features -- DotNet",
hidden: false,
},
{
type: "feat",
scope: "go",
section: "Features -- Go",
hidden: false,
},
{
type: "feat",
scope: "rust",
section: "Features -- Rust",
hidden: false,
},

{
type: "fix",
scope: "dafny",
section: "Fixes -- All Languages",
hidden: false,
},
{
type: "fix",
scope: "dotnet",
section: "Fixes -- DotNet",
hidden: false,
},
{ type: "fix", scope: "go", section: "Fixes -- Go", hidden: false },
{
type: "fix",
scope: "rust",
section: "Fixes -- Rust",
hidden: false,
},

{
type: "chore",
scope: "dafny",
section: "Maintenance -- All Languages",
hidden: false,
},
{
type: "chore",
scope: "dotnet",
section: "Maintenance -- DotNet",
hidden: false,
},
{
type: "chore",
scope: "go",
section: "Maintenance -- Go",
hidden: false,
},
{
type: "chore",
scope: "rust",
section: "Maintenance -- Rust",
hidden: false,
},
{
type: "chore",
section: "Miscellaneous",
hidden: false,
},
{
type: "docs",
scope: "dafny",
section: "Maintenance -- All Languages",
hidden: false,
},
{
type: "docs",
scope: "dotnet",
section: "Maintenance -- DotNet",
hidden: false,
},
{
type: "docs",
scope: "go",
section: "Maintenance -- Go",
hidden: false,
},
{
type: "docs",
scope: "rust",
section: "Maintenance -- Rust",
hidden: false,
},
{
type: "revert",
scope: "dafny",
section: "Fixes -- All Languages",
hidden: false,
},
{
type: "revert",
scope: "dotnet",
section: "Fixes -- DotNet",
hidden: false,
},
{
type: "revert",
scope: "go",
section: "Fixes -- Go",
hidden: false,
},
{
type: "revert",
scope: "rust",
section: "Fixes -- Rust",
hidden: false,
},
{ type: "style", section: "Miscellaneous", hidden: false },
{ type: "refactor", section: "Miscellaneous", hidden: false },
{ type: "perf", section: "Miscellaneous", hidden: false },
{ type: "test", section: "Miscellaneous", hidden: false },
],
},
},
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ duvet_report:
--html specification_compliance_report.html

setup_semantic_release:
npm i --no-save semantic-release @semantic-release/changelog semantic-release-replace-plugin conventional-changelog-conventionalcommits @semantic-release/git
npm i --no-save semantic-release @semantic-release/changelog semantic-release-replace-plugin conventional-changelog-conventionalcommits @semantic-release/git @semantic-release/exec

run_semantic_release:
npx semantic-release --no-ci
Expand Down
Loading