Update CLI version checker workflow to install tools and discover new commands via --help #1917
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The CLI version checker workflow could fetch and analyze version updates from changelogs, but it couldn't directly discover what CLI interface changes occurred between versions. This limited its ability to identify new commands, flags, or deprecated features that might not be clearly documented in changelogs.
Solution
Updated the
.github/workflows/cli-version-checker.mdworkflow to enable tool installation and CLI help discovery:1. Added Bash Tool Permissions
The workflow now has permission to:
npm install *claude-code --help,copilot --help,codex --help2. Added Tool Installation & Discovery Process
New instructions guide the agent to:
Install the new version globally using npm for each tool:
Invoke help to discover commands and flags:
Compare help output between versions to identify:
3. Updated PR Template
Added "CLI Discovery" field to document findings from help output comparison, ensuring discovered changes are included in version update PRs.
Benefits
Verification
The workflow will now provide more comprehensive version update analysis by combining changelog research with direct CLI interface discovery.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.