diff --git a/.github/workflows/release-nuget.yml b/.github/workflows/release-nuget.yml index 0ee377c..ec27492 100644 --- a/.github/workflows/release-nuget.yml +++ b/.github/workflows/release-nuget.yml @@ -178,6 +178,140 @@ jobs: with: fetchReleaseInformation: true failOnError: false + mode: "HYBRID" + configurationJson: | + { + "template": "## What's Changed\n\n#{{CHANGELOG}}\n\n**Full Changelog**: #{{RELEASE_DIFF}}", + "empty_template": "## What's Changed\n\nNo user-facing changes in this release.", + "pr_template": "- #{{TITLE}} by @#{{AUTHOR}} in ##{{NUMBER}}", + "commit_template": "- #{{TITLE}} by @#{{AUTHOR}} (`#{{MERGE_SHA}}`)", + "categories": [ + { + "title": "## ๐Ÿš€ Features", + "labels": ["enhancement", "feature", "feat"], + "mode": "PR" + }, + { + "title": "## ๐Ÿ› Bug Fixes", + "labels": ["bug", "fix", "bugfix"], + "mode": "PR" + }, + { + "title": "## ๐Ÿ“ Documentation", + "labels": ["docs", "documentation"], + "mode": "PR" + }, + { + "title": "## ๐Ÿงช Tests", + "labels": ["test", "tests", "qa"], + "mode": "PR" + }, + { + "title": "## ๐Ÿงฐ Maintenance", + "labels": ["chore", "ci", "build", "dependencies", "refactor"], + "mode": "PR" + }, + { + "title": "## ๐Ÿ”’ Security", + "labels": ["security"], + "mode": "PR" + }, + { + "title": "## ๐Ÿš€ Features (Direct Commits)", + "mode": "COMMIT", + "rules": [ + { + "pattern": "^(feat|feature)(\\(.+\\))?:\\s+.+$", + "flags": "giu", + "on_property": "title" + } + ] + }, + { + "title": "## ๐Ÿ› Bug Fixes (Direct Commits)", + "mode": "COMMIT", + "rules": [ + { + "pattern": "^(fix|bugfix|bug)(\\(.+\\))?:\\s+.+$", + "flags": "giu", + "on_property": "title" + } + ] + }, + { + "title": "## ๐Ÿงฐ Maintenance (Direct Commits)", + "mode": "COMMIT", + "rules": [ + { + "pattern": "^(build|chore|ci|refactor|perf|style|test|docs)(\\(.+\\))?:\\s+.+$", + "flags": "giu", + "on_property": "title" + } + ] + }, + { + "title": "## ๐Ÿ“ฆ Other Direct Commits", + "mode": "COMMIT", + "rules": [ + { + "pattern": "^.+$", + "flags": "gu", + "on_property": "title" + } + ] + } + ], + "sort": { + "order": "ASC", + "on_property": "mergedAt" + }, + "label_extractor": [ + { + "pattern": "^(enhancement|feature|feat)$", + "target": "$1", + "flags": "i" + }, + { + "pattern": "^(bug|fix|bugfix)$", + "target": "$1", + "flags": "i" + }, + { + "pattern": "^(docs|documentation)$", + "target": "$1", + "flags": "i" + }, + { + "pattern": "^(test|tests|qa)$", + "target": "$1", + "flags": "i" + }, + { + "pattern": "^(chore|ci|build|dependencies|refactor)$", + "target": "$1", + "flags": "i" + }, + { + "pattern": "^security$", + "target": "$0", + "flags": "i" + } + ], + "autolabeler": [ + { + "label": "docs", + "files": ["**/*.md", "docs/**"] + }, + { + "label": "test", + "files": ["**/*test*/**", "**/*tests*/**", "**/*.tests/**", "**/*.Tests/**"] + }, + { + "label": "ci", + "files": [".github/workflows/**"] + } + ] + } env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}