Skip to content

Update changelog generator for renamed file and markdown format#122

Merged
larsewi merged 1 commit intocfengine:masterfrom
larsewi:update-changelog-format
Apr 23, 2026
Merged

Update changelog generator for renamed file and markdown format#122
larsewi merged 1 commit intocfengine:masterfrom
larsewi:update-changelog-format

Conversation

@larsewi
Copy link
Copy Markdown
Contributor

@larsewi larsewi commented Apr 22, 2026

The CFEngine repos renamed their changelog files to `CHANGELOG.md` (ENT-13497) and switched to a markdown format: `## 3.27.0` instead of `3.27.0:`, bullet entries without leading tabs, and `Packaging changes:` instead of `\tPackaging changes:`.

This updates the bot so the `changelogs` command:

  • Looks for `CHANGELOG.md` in `core` and `enterprise` (not `ChangeLog` / `ChangeLog.Enterprise`).
  • Parses the version from `## x.y.z` headers.
  • Writes the new version with a `## ` header and uses `Packaging changes:` in the enterprise changelog.

Depends on cfengine/core#6085, which updates `changelog-generator` to emit markdown-formatted bullets (no leading tabs).

🤖 Generated with Claude Code

@larsewi larsewi marked this pull request as draft April 22, 2026 16:15
@larsewi larsewi force-pushed the update-changelog-format branch 2 times, most recently from 0606e16 to ea85742 Compare April 23, 2026 09:52
@larsewi larsewi marked this pull request as ready for review April 23, 2026 10:22
@larsewi larsewi requested a review from olehermanse April 23, 2026 10:22
Core and enterprise renamed their changelog files to CHANGELOG.md, and
all three repos switched to markdown-style version headers and bullets.

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi larsewi force-pushed the update-changelog-format branch from d69c1a5 to 3d5bf89 Compare April 23, 2026 11:05
Comment thread tom/changelog.py
+ changelog_enterprise
+ "\n"
+ "\tPackaging changes:\\n"
+ "**Packaging changes:**\n"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In your changelog PR it looked like this part is buggy and inserts a backslash n. I don't know why.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was for 3.24? It used the previous old state of the script

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@larsewi larsewi merged commit d28748e into cfengine:master Apr 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants