|
7 | 7 | }
|
8 | 8 | ],
|
9 | 9 | "plugins": [
|
10 |
| - "@semantic-release/commit-analyzer", |
| 10 | + [ |
| 11 | + "@semantic-release/commit-analyzer", |
| 12 | + { |
| 13 | + "preset": "conventionalcommits", |
| 14 | + "releaseRules": [ |
| 15 | + {"type": "feat", "release": "minor"}, |
| 16 | + {"type": "fix", "release": "patch"}, |
| 17 | + {"type": "perf", "release": "patch"}, |
| 18 | + {"type": "revert", "release": "patch"}, |
| 19 | + {"type": "docs", "scope": "README", "release": "patch"}, |
| 20 | + {"type": "style", "release": false}, |
| 21 | + {"type": "refactor", "release": "patch"}, |
| 22 | + {"type": "test", "release": false}, |
| 23 | + {"type": "build", "release": false}, |
| 24 | + {"type": "ci", "release": false}, |
| 25 | + {"type": "chore", "release": false}, |
| 26 | + {"scope": "no-release", "release": false} |
| 27 | + ] |
| 28 | + } |
| 29 | + ], |
| 30 | + [ |
| 31 | + "@semantic-release/release-notes-generator", |
| 32 | + { |
| 33 | + "preset": "conventionalcommits", |
| 34 | + "presetConfig": { |
| 35 | + "types": [ |
| 36 | + {"type": "feat", "section": "Features"}, |
| 37 | + {"type": "fix", "section": "Bug Fixes"}, |
| 38 | + {"type": "perf", "section": "Performance Improvements"}, |
| 39 | + {"type": "revert", "section": "Reverts"}, |
| 40 | + {"type": "docs", "section": "Documentation"}, |
| 41 | + {"type": "refactor", "section": "Code Refactoring"} |
| 42 | + ] |
| 43 | + } |
| 44 | + } |
| 45 | + ], |
11 | 46 | [
|
12 | 47 | "@semantic-release/changelog",
|
13 | 48 | {
|
|
30 | 65 | [
|
31 | 66 | "@semantic-release/github",
|
32 | 67 | {
|
33 |
| - "assets": [] |
| 68 | + "assets": [], |
| 69 | + "successComment": "🎉 This issue has been resolved in version ${nextRelease.version} 🎉\n\nThe release is available on [GitHub release](${releases.filter(release => !!release.name)[0].url})", |
| 70 | + "failComment": false, |
| 71 | + "failTitle": false, |
| 72 | + "labels": ["released"], |
| 73 | + "releasedLabels": ["released"] |
34 | 74 | }
|
35 | 75 | ]
|
36 | 76 | ]
|
|
0 commit comments