Skip to content

smarter changelog - #20138

Merged
Hona merged 3 commits into
anomalyco:devfrom
Hona:smarter-changelog
Mar 31, 2026
Merged

smarter changelog#20138
Hona merged 3 commits into
anomalyco:devfrom
Hona:smarter-changelog

Conversation

@Hona

@Hona Hona commented Mar 30, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 30, 2026 22:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the changelog generation flow to produce a structured “raw” changelog (commit range + grouping + contributor block) and then generate UPCOMING_CHANGELOG.md via the opencode changelog command, with script/changelog.ts acting as a safer wrapper.

Changes:

  • Switch release/version automation to call bun script/changelog.ts instead of directly invoking opencode run --command changelog.
  • Add script/raw-changelog.ts to generate structured changelog input (commits grouped into release sections + contributor thanks).
  • Rewrite script/changelog.ts into a wrapper that backs up/restores UPCOMING_CHANGELOG.md and runs the opencode changelog command; update the opencode command prompt to consume raw-changelog output.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
script/version.ts Uses the new wrapper script to generate UPCOMING_CHANGELOG.md during release/version automation.
script/raw-changelog.ts New script that builds the structured changelog input used by the opencode command.
script/changelog.ts Refactored into a wrapper around opencode run --command changelog, with backup/restore and quiet/print options.
.opencode/command/changelog.md Updates the prompt and switches input generation to bun script/raw-changelog.ts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread script/changelog.ts Outdated
Comment thread script/changelog.ts
Comment thread .opencode/command/changelog.md
Comment thread .opencode/command/changelog.md
@Hona

Hona commented Mar 31, 2026

Copy link
Copy Markdown
Member Author

/review

@github-actions

Copy link
Copy Markdown
Contributor

lgtm

@Hona
Hona enabled auto-merge (squash) March 31, 2026 00:02
@Hona
Hona merged commit 93fad99 into anomalyco:dev Mar 31, 2026
8 checks passed
vicary pushed a commit to vicary/opencode that referenced this pull request Apr 6, 2026
balcsida pushed a commit to balcsida/opencode that referenced this pull request Apr 8, 2026
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
avion23 pushed a commit to avion23/opencode that referenced this pull request Jun 10, 2026
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants