Skip to content

Add release changelog agentic workflow#638

Merged
SteveSandersonMS merged 2 commits intomainfrom
changelog-agent
Mar 3, 2026
Merged

Add release changelog agentic workflow#638
SteveSandersonMS merged 2 commits intomainfrom
changelog-agent

Conversation

@SteveSandersonMS
Copy link
Copy Markdown
Contributor

Summary

Adds an AI agent that automatically generates CHANGELOG.md entries when a stable (non-preview) release is published.

How it works

  1. Publishing a release with dist-tag: latest creates a GitHub Release
  2. The release: published event triggers this agentic workflow (filtered to non-prerelease)
  3. The agent reads CHANGELOG.md to find the last documented version, then gathers merged PRs/commits since that tag
  4. It generates a formatted changelog with highlighted features (descriptions + code snippets) and a flat list of other changes
  5. It opens a PR to update CHANGELOG.md via create-pull-request safe output
  6. It updates the GitHub Release notes via update-release safe output

Also supports workflow_dispatch for manual runs against any tag.

Files

  • .github/workflows/release-changelog.md — agentic workflow source
  • CHANGELOG.md — seed file at repo root

Before merging

The .lock.yml must be compiled via gh aw compile release-changelog before this workflow will run in CI.

@SteveSandersonMS SteveSandersonMS requested a review from a team as a code owner March 3, 2026 16:24
Copilot AI review requested due to automatic review settings March 3, 2026 16:24
Create an AI agent that automatically generates CHANGELOG.md entries
when a stable (non-preview) release is published. The agent:

- Triggers on release:published events (filtered to non-prerelease)
- Reads merged PRs/commits between the new and previous stable tags
- Generates categorized, bullet-pointed changelog entries
- Opens a PR to update CHANGELOG.md via create-pull-request safe output
- Updates the GitHub Release notes via update-release safe output
- Posts an announcement Discussion for team visibility

Also adds a seed CHANGELOG.md at the repo root.

Note: The .lock.yml must be compiled via 'gh aw compile release-changelog'
before this workflow will run in CI.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a GitHub Agentic Workflow that generates and publishes changelog entries for stable releases, plus a seeded root CHANGELOG.md for the agent to update.

Changes:

  • Add initial CHANGELOG.md header/seed content at repo root.
  • Add .github/workflows/release-changelog.md agentic workflow to generate changelog entries, open a PR, and update GitHub Release notes.

Reviewed changes

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

File Description
CHANGELOG.md Adds the initial changelog file the workflow will prepend entries to.
.github/workflows/release-changelog.md Defines the agentic workflow instructions and safe outputs for PR creation + release note updates.
Comments suppressed due to low confidence (1)

.github/workflows/release-changelog.md:80

  • Using “today’s date” will produce incorrect changelog dates when the workflow is run manually for an older tag (and can also differ from the actual release publish date). Prefer using the release’s published_at date (fetch it by tag for workflow_dispatch) to keep CHANGELOG and GitHub Release metadata consistent.

3. Use today's date for the release date.

- Add explicit guidance for workflow_dispatch runs where release event
  fields are empty (fetch release by tag via API)
- Use release publish date instead of today's date for changelog entries
- Remove author attribution to match example style (keep it clean)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@SteveSandersonMS SteveSandersonMS merged commit 7460798 into main Mar 3, 2026
10 checks passed
@SteveSandersonMS SteveSandersonMS deleted the changelog-agent branch March 3, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants