mirror of
https://github.com/MSWS/TTT.git
synced 2025-12-06 06:22:44 -08:00
- Revise the changelog template in `.github/changelogConfig.json` to include contributors, commit details, and sorting capabilities. - Simplify syntax and modify concurrency setting in `.github/workflows/release.yml`, and add logical enhancements for version comparison and release conditions.
77 lines
1.9 KiB
JSON
77 lines
1.9 KiB
JSON
{
|
|
"template": "#{{CHANGELOG}}\n\n_#{{CONTRIBUTORS}} contributed across #{{COMMITS}} commits; see #{{RELEASE_DIFF}}_\n",
|
|
"pr_template": "- ##{{NUMBER}}: #{{TITLE}} (by @#{{AUTHOR}}) — ##{{URL}}",
|
|
"commit_template": "- #{{TITLE}}",
|
|
"empty_template": "- No changes",
|
|
"sort": { "order": "DESC", "on_property": "mergedAt" },
|
|
"ignore_labels": ["skip-changelog"],
|
|
"base_branches": ["main", "dev"],
|
|
"categories": [
|
|
{
|
|
"title": "## Breaking Changes",
|
|
"empty_content": "",
|
|
"rules": [
|
|
{ "pattern": "BREAKING CHANGE", "on_property": "body" },
|
|
{ "pattern": "!", "on_property": "title" }
|
|
],
|
|
"mode": "HYBRID"
|
|
},
|
|
{
|
|
"title": "## Features",
|
|
"labels": ["feature", "feat"]
|
|
},
|
|
{
|
|
"title": "## Fixes",
|
|
"labels": ["fix", "bug"]
|
|
},
|
|
{
|
|
"title": "## Security",
|
|
"labels": ["security", "vulnerability"]
|
|
},
|
|
{
|
|
"title": "## Performance",
|
|
"labels": ["perf"]
|
|
},
|
|
{
|
|
"title": "## Refactors",
|
|
"labels": ["refactor"]
|
|
},
|
|
{
|
|
"title": "## Docs",
|
|
"labels": ["docs", "documentation"]
|
|
},
|
|
{
|
|
"title": "## CI / CD",
|
|
"labels": ["ci", "cd", "build", "workflow", "test"]
|
|
},
|
|
{
|
|
"title": "## Dependencies",
|
|
"labels": ["dependencies", "dependabot"]
|
|
},
|
|
{
|
|
"title": "### Other",
|
|
"labels": []
|
|
}
|
|
],
|
|
"label_extractor": [
|
|
{
|
|
"pattern": "^(build|chore|ci|cd|workflow|docs|feat|feature|fix|bug|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: [\\s\\S]+$",
|
|
"on_property": "title",
|
|
"target": "$1"
|
|
}
|
|
],
|
|
"duplicate_filter": {
|
|
"pattern": "\\(#\\d+\\)$",
|
|
"on_property": "title",
|
|
"method": "match"
|
|
},
|
|
"reference": {
|
|
"pattern": "\\(#(\\d+)\\)",
|
|
"on_property": "body",
|
|
"method": "match",
|
|
"target": "$1"
|
|
},
|
|
"trim_values": true,
|
|
"max_back_track_time_days": 365
|
|
}
|