feat: add discord automated release notifications (#564)

This commit is contained in:
Zach
2026-04-22 17:27:39 -04:00
committed by Zach Yale
parent 9c3ecc58d4
commit e65536de1c
11 changed files with 938 additions and 59 deletions
+10 -38
View File
@@ -1,3 +1,5 @@
const releasePolicy = require("./release-policy.cjs");
module.exports = {
repositoryUrl: "https://github.com/grimmory-tools/grimmory.git",
branches: ["main"],
@@ -8,32 +10,14 @@ module.exports = {
{
preset: "conventionalcommits",
presetConfig: {
types: [
{ type: "feat", section: "Features", hidden: false },
{ type: "fix", section: "Bug Fixes", hidden: false },
{ type: "perf", section: "Performance", hidden: false },
{ type: "refactor", section: "Refactors", hidden: false },
{ type: "chore", section: "Chores", hidden: false },
{ type: "docs", section: "Documentation", hidden: false },
{ type: "ci", section: "CI", hidden: false },
{ type: "build", section: "Build", hidden: false },
{ type: "test", section: "Tests", hidden: false },
{ type: "style", section: "Style", hidden: false },
{ type: "revert", section: "Reverts", hidden: false }
]
types: releasePolicy.types.map(({ section, type }) => ({ hidden: false, section, type }))
},
parserOpts: {
noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
noteKeywords: releasePolicy.noteKeywords
},
releaseRules: [
{ type: "refactor", release: "patch" },
{ type: "docs", release: false },
{ type: "ci", release: false },
{ type: "build", release: false },
{ type: "chore", release: false },
{ type: "test", release: false },
{ type: "style", release: false }
]
releaseRules: releasePolicy.types
.filter((entry) => Object.prototype.hasOwnProperty.call(entry, "release"))
.map(({ release, type }) => ({ release, type }))
}
],
[
@@ -41,25 +25,13 @@ module.exports = {
{
preset: "conventionalcommits",
presetConfig: {
types: [
{ type: "feat", section: "Features", hidden: false },
{ type: "fix", section: "Bug Fixes", hidden: false },
{ type: "perf", section: "Performance", hidden: false },
{ type: "refactor", section: "Refactors", hidden: false },
{ type: "chore", section: "Chores", hidden: false },
{ type: "docs", section: "Documentation", hidden: false },
{ type: "ci", section: "CI", hidden: false },
{ type: "build", section: "Build", hidden: false },
{ type: "test", section: "Tests", hidden: false },
{ type: "style", section: "Style", hidden: false },
{ type: "revert", section: "Reverts", hidden: false }
]
types: releasePolicy.types.map(({ section, type }) => ({ hidden: false, section, type }))
},
parserOpts: {
noteKeywords: ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
noteKeywords: releasePolicy.noteKeywords
},
writerOpts: {
commitsSort: ["scope", "subject"]
commitsSort: releasePolicy.writerSortFields
}
}
],