feat: custom changelog generator that skips team member attribution

This commit is contained in:
Mark IJbema
2026-04-13 14:51:56 +02:00
parent c83012a6d0
commit 26e2e3339f
2 changed files with 60 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.4/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "Kilo-Org/kilocode" }],
"changelog": ["../script/changelog-github.cjs", { "repo": "Kilo-Org/kilocode" }],
"commit": false,
"fixed": [["kilo-code", "@kilocode/cli"]],
"linked": [],
+59
View File
@@ -0,0 +1,59 @@
// kilocode_change - new file
// Custom changelog generator that wraps @changesets/changelog-github
// but strips "Thanks @user!" for team members.
const github = require("@changesets/changelog-github")
const team = new Set([
"actions-user",
"kilo-maintainer[bot]",
"kiloconnect[bot]",
"kiloconnect-lite[bot]",
"alexkgold",
"arimesser",
"arkadiykondrashov",
"bturcotte520",
"catrielmuller",
"chrarnoldus",
"codingelves",
"darkogj",
"dosire",
"DScdng",
"emilieschario",
"eshurakov",
"Helix-Kilo",
"iscekic",
"jeanduplessis",
"jobrietbergen",
"jrf0110",
"kevinvandijk",
"alex-alecu",
"imanolmzd-svg",
"kilocode-bot",
"kilo-code-bot[bot]",
"kirillk",
"lambertjosh",
"LigiaZ",
"marius-kilocode",
"markijbema",
"olearycrew",
"pandemicsyn",
"pedroheyerdahl",
"RSO",
"sbreitenother",
"suhailkc2025",
"Sureshkumars",
])
const base = github.default || github
module.exports = {
...base,
getReleaseLine: async (changeset, type, options) => {
const line = await base.getReleaseLine(changeset, type, options)
// Strip "Thanks @user!" for team members
return line.replace(/ Thanks \[@([^\]]+)\]\([^)]+\)!/g, (match, user) => {
if (team.has(user)) return ""
return match
})
},
}