一键导入
create-pr
// Create a GitHub PR with a well-formatted description matching the repository PR template (flat Changes by default; optional Added/Changed/Removed/Fixed grouping)
// Create a GitHub PR with a well-formatted description matching the repository PR template (flat Changes by default; optional Added/Changed/Removed/Fixed grouping)
Maintain the NeMo Data Designer Fern docs site under fern/. Use for any documentation change. Triggered by: "edit docs", "add doc page", "update docs", "rename page", "fix broken link", "add redirect", "preview docs", "publish docs", "regenerate notebooks", "update dev note", any request that touches `fern/`.
Perform a thorough code review of the current branch or a GitHub PR by number.
Use when the user wants to create a dataset, generate synthetic data, or build a data generation pipeline.
Commit current changes with a clear, descriptive message
Search local documentation in the docs/ folder for content related to a topic
Search GitHub issues, discussions, and PRs for content related to a topic
| name | create-pr |
| description | Create a GitHub PR with a well-formatted description matching the repository PR template (flat Changes by default; optional Added/Changed/Removed/Fixed grouping) |
| argument-hint | ["special instructions"] |
| disable-model-invocation | true |
| metadata | {"internal":true} |
Create a well-formatted GitHub pull request for the current branch. The PR description must conform to the repository's PR template (.github/PULL_REQUEST_TEMPLATE.md).
$ARGUMENTS can be used for special instructions, such as:
Default base branch: main (unless specified in arguments)
Run these commands in parallel to understand the changes:
git branch --show-currentgit status --porcelaingit log origin/main..HEAD --onelinegit diff --stat origin/main..HEADgit diff origin/main..HEADgit log -5 --oneline (to match PR title convention)gh repo view --json nameWithOwner -q '.nameWithOwner' (for constructing file URLs)Important checks:
Use change types below to decide how to write the Changes section (flat vs grouped). You still describe testing under Testing, not under these buckets.
### ✨ Added, ### 🔧 Changed, ### 🗑️ Removed, ### 🐛 Fixed): Large PRs, release-note-style summaries, or clearly distinct fix + feature mixes. Omit any empty section — do not leave placeholder headings.Flag for special reviewer attention:
pyproject.toml, requirements.txt)Use conventional commit format matching the repo style:
feat: for new featuresfix: for bug fixesdocs: for documentationrefactor: for refactoringchore: for maintenancetest: for test changesIf commits have mixed types, use the primary/most significant type.
Push branch (if needed):
git push -u origin <branch-name>
Build the PR body using the repository's template structure.
Default — flat Changes (remove the HTML comment block from the template when filling in, or replace with your bullets only):
## 📋 Summary
[1-3 sentences: what this PR does and why. Focus on the "why".]
## 🔗 Related Issue
[Fixes #NNN or Closes #NNN — link to the issue this addresses]
## 🔄 Changes
- [Bullet list of key changes]
- [Link to key files when helpful for reviewers]
- [Reference commits for specific changes in multi-commit PRs]
## 🧪 Testing
- [x] `make test` passes
- [x] Unit tests added/updated (or: N/A — no testable logic)
- [ ] E2E tests added/updated (if applicable)
## ✅ Checklist
- [x] Follows commit message conventions
- [x] Commits are signed off (DCO)
- [ ] Architecture docs updated (if applicable)
Optional — grouped Changes (only when Step 2 criteria apply; omit empty sections):
## 🔄 Changes
### ✨ Added
- [...]
### 🔧 Changed
- [...]
### 🐛 Fixed
- [...]
(Include ### 🗑️ Removed only when something was deleted.)
If there are genuinely important attention areas for reviewers, add an Attention Areas section after Changes:
## 🔍 Attention Areas
> ⚠️ **Reviewers:** Please pay special attention to the following:
- [`path/to/critical/file.py`](https://github.com/<owner>/<repo>/blob/<branch>/path/to/critical/file.py) — [Why this needs attention]
Execute:
gh pr create --title "<title>" --body "$(cat <<'EOF'
<body>
EOF
)"
Return the PR URL to the user.
Fixes #NNN for bugs, Closes #NNN for features/tasks[filename](https://github.com/<owner>/<repo>/blob/<branch>/path/to/file.py)[description](https://github.com/<owner>/<repo>/blob/<branch>/path/to/file.py#L42-L50)abc1234 — GitHub auto-links short commit SHAs in PR descriptions