一键导入
create-pr-github
// Create and (optionally) merge a GitHub pull request (prefer GitHub chat tools; gh/wrappers are fallback), following the repo policy to use rebase and merge for a linear history.
// Create and (optionally) merge a GitHub pull request (prefer GitHub chat tools; gh/wrappers are fallback), following the repo policy to use rebase and merge for a linear history.
Export and analyze VS Code Copilot chat logs for retrospective metrics. Extracts model usage, tool invocations, approval patterns, and timing data.
Generate the comprehensive demo markdown artifacts from the current codebase. Use before UAT to ensure test artifacts reflect the latest code.
Regenerate test snapshot files after intentional markdown output changes. Use after modifying templates or rendering logic.
Run User Acceptance Testing by creating a PR with rendered markdown on GitHub or Azure DevOps. Use when validating markdown rendering in real platforms.
Simulate the UAT workflow (create PR, comment, poll) on GitHub or Azure DevOps using a minimal test artifact and simulated fixes.
View GitHub PR status/details (prefer GitHub chat tools; gh is fallback).
| name | create-pr-github |
| description | Create and (optionally) merge a GitHub pull request (prefer GitHub chat tools; gh/wrappers are fallback), following the repo policy to use rebase and merge for a linear history. |
Create a GitHub pull request in a consistent, policy-compliant way, and include the repo’s preferred merge method guidance (rebase and merge).
This skill prefers using GitHub chat tools because they can be permanently allowed in VS Code and avoid terminal pager/editor issues. If chat tools are unavailable (or repo context is unknown), fall back to the repo wrapper script scripts/pr-github.sh.
main branch.origin before creating the PR.CONTRIBUTING.md).main.--fill or any heuristic that guesses title/body (not supported by the wrapper).Before running any PR creation command, provide in chat:
## Problem
<why is this change needed?>
## Change
<what changed?>
## Verification
<how was it validated?>
Create a PR:
echo "## Summary\n\nPR description" | scripts/pr-github.sh create --title "<type(scope): summary>" --body-from-stdin
Create and merge (only when explicitly requested):
echo "## Summary\n\nPR description" | scripts/pr-github.sh create-and-merge --title "<type(scope): summary>" --body-from-stdin
git branch --show-current
git status --short
git push -u origin HEAD
Use the GitHub PR creation tool with an explicit title + body (same template as above).
Notes:
owner + repo) and your pushed branch name.owner/repo reliably, use the wrapper fallback below.gh CLIecho "## Summary\n\nPR description" | PAGER=cat gh pr create \
--base main \
--head "$(git branch --show-current)" \
--title "<type(scope): summary>" \
--body-file -
This repository requires rebase and merge.
Use the GitHub PR merge tool with merge_method=rebase.
gh CLIPAGER=cat gh pr merge <pr-number> --rebase --delete-branch
git pull --rebase origin main
# resolve conflicts
git push --force-with-lease
Then retry the merge.