Loading...
Loading...
Create or update a GitHub pull request with a Japanese title and body, using .github/pull_request_template.md or docs/pull_request_template.md when present. Use when the user asks to open a PR, create a pull request, or refresh PR metadata. Requires a pushed branch—use push (and pull if needed) first; use commit-jp for commits.
npx skill4agent add noblejasper/agent-skills create-pr-jp.github/pull_request_template.mddocs/pull_request_template.mdpnpm lint && pnpm testghgh auth statusoriginoriginmainmasteroriginorigin/maingit pushorigingit push-u origin HEADpnpm lint && pnpm testgit diff <base>...HEADgit log <base>..HEADgit diff <base>...HEAD --stat<base>main.github/pull_request_template.mddocs/pull_request_template.md.github/pull_request_template.md<!-- ... -->gh pr creategh pr editopenopengh pr view --json urlmainbase=main
pnpm lint && pnpm test
git fetch origin
git diff "origin/${base}...HEAD" --stat
git log "origin/${base}..HEAD" --oneline
# If .github/pull_request_template.md or docs/pull_request_template.md exists, draft body from it into a temp file, then:
gh pr create --base "$base" --title "<日本語タイトル>" --body-file /tmp/pr_body.md
# Or update an existing PR:
# gh pr edit --title "..." --body-file /tmp/pr_body.md
gh pr view --json url -q .urlgh pr creategh pr edit--body-file.github/pull_request_template.mddocs/pull_request_template.mdmaingit push --force--force-with-lease| Situation | Action |
|---|---|
| Uncommitted changes | commit-jp (or commit-and-push-jp) before PR |
Branch not on | push; if non-fast-forward, pull then push |
| Report verbatim; user runs |
No template at | Still write a clear Japanese body: summary, test plan, risks |
| PR already closed for this branch | New branch from default + cherry-pick or redo work per repo rules |