Skip to content

feat: add repository_dispatch to update CLI version on GitHub Action repos#566

Merged
jonathannorris merged 3 commits intomainfrom
chore-update-cli-version-on-actions
Apr 16, 2026
Merged

feat: add repository_dispatch to update CLI version on GitHub Action repos#566
jonathannorris merged 3 commits intomainfrom
chore-update-cli-version-on-actions

Conversation

@jonathannorris
Copy link
Copy Markdown
Member

@jonathannorris jonathannorris commented Apr 14, 2026

Summary

  • Adds repository_dispatch events to the CLI release workflow that trigger CLI version updates on feature-flag-pr-insights-action and feature-flag-code-usage-action
  • Gated on minor or patch releases, matching the existing vscode-extension update behavior
  • Fixes server.json formatting and uses jq --indent 4 in the release workflow to prevent future drift

The target repos will each have a receiver workflow that handles the update, rebuilds dist/, and opens a PR.

@jonathannorris jonathannorris requested a review from a team as a code owner April 14, 2026 19:42
Copilot AI review requested due to automatic review settings April 14, 2026 19:42
Copy link
Copy Markdown

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

This PR extends the existing CLI release workflow to notify downstream GitHub Action repositories to update their pinned CLI version whenever a minor or patch release is cut, aligning with the current VSCode extension update behavior.

Changes:

  • Add two repository_dispatch steps to trigger update-cli-version in feature-flag-pr-insights-action.
  • Add two repository_dispatch steps to trigger update-cli-version in feature-flag-code-usage-action.
  • Gate both dispatches to run only for minor and patch workflow_dispatch releases.

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

Copilot AI review requested due to automatic review settings April 14, 2026 19:49
Copy link
Copy Markdown

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

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.


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

Comment thread .github/workflows/cli-release.yml
@jonathannorris jonathannorris merged commit 1f4db16 into main Apr 16, 2026
13 checks passed
@jonathannorris jonathannorris deleted the chore-update-cli-version-on-actions branch April 16, 2026 18:55
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.

3 participants