|
| 1 | +const npmOptions = { |
| 2 | + exact: true, |
| 3 | +}; |
| 4 | + |
| 5 | +/** Auto configuration */ |
| 6 | +module.exports = function rc() { |
| 7 | + return { |
| 8 | + author: 'Release Bot <[email protected]>', |
| 9 | + baseBranch: 'main', |
| 10 | + plugins: [ |
| 11 | + [ |
| 12 | + 'all-contributors', |
| 13 | + { |
| 14 | + exclude: ['dependabot', 'codecademydev'], |
| 15 | + }, |
| 16 | + ], |
| 17 | + ['npm', npmOptions], |
| 18 | + [ |
| 19 | + 'released', |
| 20 | + { |
| 21 | + label: ':shipit:', |
| 22 | + }, |
| 23 | + ], |
| 24 | + 'first-time-contributor', |
| 25 | + ], |
| 26 | + noDefaultLabels: true, |
| 27 | + labels: [ |
| 28 | + { |
| 29 | + name: 'release/major', |
| 30 | + changelogTitle: '💥 Breaking Change', |
| 31 | + description: 'Increment the major version when merged', |
| 32 | + releaseType: 'major', |
| 33 | + color: '#C5000B', |
| 34 | + }, |
| 35 | + { |
| 36 | + name: 'release/minor', |
| 37 | + changelogTitle: '🚀 Enhancement', |
| 38 | + description: 'Increment the minor version when merged', |
| 39 | + releaseType: 'minor', |
| 40 | + color: '#F1A60E', |
| 41 | + }, |
| 42 | + { |
| 43 | + name: 'release/patch', |
| 44 | + changelogTitle: '🐛 Bug Fix', |
| 45 | + description: 'Increment the patch version when merged', |
| 46 | + releaseType: 'patch', |
| 47 | + color: '#870048', |
| 48 | + }, |
| 49 | + { |
| 50 | + name: 'release/skip', |
| 51 | + description: 'Preserve the current version when merged', |
| 52 | + releaseType: 'skip', |
| 53 | + color: '#bf5416', |
| 54 | + }, |
| 55 | + { |
| 56 | + name: 'release', |
| 57 | + description: 'Create a release when this pr is merged', |
| 58 | + releaseType: 'release', |
| 59 | + color: '#007f70', |
| 60 | + }, |
| 61 | + { |
| 62 | + name: 'release/internal', |
| 63 | + changelogTitle: '🏠 Internal', |
| 64 | + description: 'Changes only affect the internal API', |
| 65 | + releaseType: 'none', |
| 66 | + color: '#696969', |
| 67 | + }, |
| 68 | + { |
| 69 | + name: 'release/documentation', |
| 70 | + changelogTitle: '📝 Documentation', |
| 71 | + description: 'Changes only affect the documentation', |
| 72 | + releaseType: 'none', |
| 73 | + color: '#cfd3d7', |
| 74 | + }, |
| 75 | + { |
| 76 | + name: 'release/tests', |
| 77 | + changelogTitle: '🧪 Tests', |
| 78 | + description: 'Add or improve existing tests', |
| 79 | + releaseType: 'none', |
| 80 | + color: '#ffd3cc', |
| 81 | + }, |
| 82 | + { |
| 83 | + name: 'release/dependencies', |
| 84 | + changelogTitle: '🔩 Dependency Updates', |
| 85 | + description: 'Update one or more dependencies version', |
| 86 | + releaseType: 'patch', |
| 87 | + color: '#8732bc', |
| 88 | + }, |
| 89 | + { |
| 90 | + name: 'release/performance', |
| 91 | + changelogTitle: '🏎 Performance', |
| 92 | + description: 'Improve performance of an existing feature', |
| 93 | + releaseType: 'patch', |
| 94 | + color: '#f4b2d8', |
| 95 | + }, |
| 96 | + ], |
| 97 | + }; |
| 98 | +}; |
0 commit comments