changelog-github.cjs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // kilocode_change - new file
  2. // Custom changelog generator that wraps @changesets/changelog-github
  3. // but strips "Thanks @user!" for team members.
  4. const github = require("@changesets/changelog-github")
  5. const team = new Set([
  6. "actions-user",
  7. "kilo-maintainer[bot]",
  8. "kiloconnect[bot]",
  9. "kiloconnect-lite[bot]",
  10. "alexkgold",
  11. "arimesser",
  12. "arkadiykondrashov",
  13. "bturcotte520",
  14. "catrielmuller",
  15. "chrarnoldus",
  16. "codingelves",
  17. "darkogj",
  18. "dosire",
  19. "DScdng",
  20. "emilieschario",
  21. "eshurakov",
  22. "Helix-Kilo",
  23. "iscekic",
  24. "jeanduplessis",
  25. "jobrietbergen",
  26. "jrf0110",
  27. "kevinvandijk",
  28. "alex-alecu",
  29. "imanolmzd-svg",
  30. "kilocode-bot",
  31. "kilo-code-bot[bot]",
  32. "kirillk",
  33. "lambertjosh",
  34. "LigiaZ",
  35. "marius-kilocode",
  36. "markijbema",
  37. "olearycrew",
  38. "pandemicsyn",
  39. "pedroheyerdahl",
  40. "RSO",
  41. "sbreitenother",
  42. "suhailkc2025",
  43. "Sureshkumars",
  44. ])
  45. const base = github.default || github
  46. module.exports = {
  47. ...base,
  48. getReleaseLine: async (changeset, type, options) => {
  49. const line = await base.getReleaseLine(changeset, type, options)
  50. // Strip "Thanks @user!" for team members
  51. return line.replace(/ Thanks \[@([^\]]+)\]\([^)]+\)!/g, (match, user) => {
  52. if (team.has(user)) return ""
  53. return match
  54. })
  55. },
  56. }