Skip to content

feat: add Prep Release custom agent#568

Open
rajbos wants to merge 1 commit intomainfrom
rajbos/add-release-prep-agent
Open

feat: add Prep Release custom agent#568
rajbos wants to merge 1 commit intomainfrom
rajbos/add-release-prep-agent

Conversation

@rajbos
Copy link
Copy Markdown
Owner

@rajbos rajbos commented Apr 9, 2026

Summary

Adds a Prep Release custom agent (.github/agents/prep-release.agent.md) that automates the version-bump PR workflow before publishing a new release.

What the agent does

  1. Detects changes for each of the three releasable components by comparing to the last release tag (vscode/v*, cli/v*, vs/v*)
  2. Confirms the plan with the user before making any changes (shows a table of what would be bumped)
  3. Bumps version numbers in the right files:
    • vscode-extension/package.json (via npm version)
    • cli/package.json (via npm version)
    • visualstudio-extension/src/CopilotTokenTracker/source.extension.vsixmanifest (XML Identity.Version)
  4. Creates a release/prep-YYYY-MM-DD branch, commits only the version files, pushes, and opens a PR
  5. Outputs which workflows to run after the PR is merged:
    • release.yml — VS Code Marketplace
    • cli-publish.yml — npm
    • visualstudio-build.yml — Visual Studio Marketplace

Usage

Invoke via the Copilot CLI task tool:

Use the "Prep Release" agent to prep the next release

Supports patch / minor / major bumps, per-component overrides, and a dry-run preview mode.

Adds a custom agent that automates the release-prep workflow:
- Detects which of the three releasable components (VS Code extension,
  CLI, Visual Studio extension) have changed since their last release tag
- Bumps the appropriate version numbers (patch/minor/major)
- Creates a release/prep-YYYY-MM-DD branch
- Commits the version files and opens a PR
- Outputs which GitHub Actions workflows to trigger after merging

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant