mit einem Klick
create-pr-description
// Generate a concise PR description from code changes, following the repo's PR template
// Generate a concise PR description from code changes, following the repo's PR template
Automatically resolve CVEs by checking GitHub issues, verifying presence in codebase, and attempting various remediation strategies while documenting the process.
Run Jest unit tests for files changed in the current branch
Automatically retry failed required CI checks on GitHub PRs, with smart waiting and filtering logic
| name | create_pr_description |
| description | Generate a concise PR description from code changes, following the repo's PR template |
| arguments | [{"name":"pr_number","description":"PR number to analyze. If not provided, analyzes local uncommitted/committed changes","required":false},{"name":"output_file","description":"File path to save the generated PR description (defaults to tmp/pr-description.md)","required":false}] |
Analyze code changes and produce a PR description that follows .github/pull_request_template.md. The output should be concise enough that a reviewer can understand the PR in under 30 seconds.
This is the style to emulate (from a real CVE fix PR):
### Description
Resolves security vulnerabilities in project dependencies:
* **CVE-2026-4800** (High): lodash vulnerable to Code Injection via `_.template` imports key names
* **Package**: lodash@4.17.23 → lodash@4.18.1
* **Resolution Strategy**: Direct Package Update - Updated all lodash dependencies and yarn resolutions to safe versions
### Issues Resolved
* closes #11658
## Screenshot
## Testing the changes
**CVE Resolution Verification:**
1. Run `yarn osd bootstrap` - Should complete successfully
2. Run `yarn audit --level high` - Should not show CVE-2026-4800 or lodash vulnerabilities
3. Check `yarn.lock` - Should show lodash@4.18.1 (safe version)
**Build Verification:**
* Ensure project builds and starts successfully
* No functional regressions expected as this is a security patch update
### Check List
- [x] All tests pass
- [x] `yarn test:jest`
- [x] `yarn test:jest_integration`
- [ ] New functionality includes testing.
- [ ] New functionality has been documented.
- [x] Commits are signed per the DCO using --signoff
cat .github/pull_request_template.md
Use this as the skeleton. Preserve its structure exactly.
For local changes:
git diff --name-only HEAD
git diff --stat HEAD
git log --oneline -5
git branch --show-current
For an existing PR (if a PR number is provided):
gh pr view {pr_number} --json title,body,headRefName,files
gh pr diff {pr_number} --stat
closes #N format.Write the filled template to tmp/pr-description.md (or a specified output path) and print it to the terminal.