-
Notifications
You must be signed in to change notification settings - Fork 835
CLI: Add gen-test-instructions
command
#45491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
44a3263
to
20e8921
Compare
There was a problem hiding this 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 introduces a new CLI tool to automate the generation of consolidated test instructions for Jetpack plugin releases. The tool extracts changelog entries, fetches PR details from GitHub, and optionally uses Claude AI to consolidate testing instructions into a structured markdown guide.
Key changes:
- Creates a Node.js-based tool that parses changelogs and integrates with GitHub API
- Implements AI-powered consolidation using Claude API for intelligent test instruction grouping
- Provides a bash wrapper script with comprehensive CLI interface and validation
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
File | Description |
---|---|
tools/js-tools/gen-test-instructions.mjs | Core Node.js implementation handling changelog parsing, GitHub API integration, and AI consolidation |
tools/gen-test-instructions.sh | Bash wrapper providing CLI interface, input validation, and prerequisite checking |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this 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 2 out of 2 changed files in this pull request and generated 4 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Here is the prompt used to generate the tool
I then followed up with some more prompting to tweak things a bit like making PR numbers as hyperlinks.
Proposed changes:
A new tool at
tools/gen-test-instructions.sh
to automate the generation of consolidated test instructions for Jetpack plugin releases. This tool significantly reduces manual effort during testing week by automatically extracting, fetching, and consolidating test instructions from the changelog and GitHub PRs.Two main features
1. AI-Powered Consolidation
2. Raw Output Mode
Command Usage
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions: