Files
kiloconnect[bot] 96bd75067a fix: suppress 'Thanks' credit for kilo-code-bot app in changelog
@changesets/changelog-github renders GitHub App credits with the app slug (e.g. [@kilo-code-bot](https://github.com/apps/kilo-code-bot)), not the '[bot]'-suffixed commit author login. v7.2.12 leaked a 'Thanks @kilo-code-bot!' line because the team set only contained 'kilo-code-bot[bot]'. Add the bare slug.
2026-04-17 13:35:52 +00:00

62 lines
1.3 KiB
JavaScript

// 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",
"dependabot[bot]",
"dosire",
"DScdng",
"emilieschario",
"eshurakov",
"Helix-Kilo",
"iscekic",
"jeanduplessis",
"jobrietbergen",
"jrf0110",
"kevinvandijk",
"alex-alecu",
"imanolmzd-svg",
"kilocode-bot",
"kilo-code-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
})
},
}