PR Workflow
Required Rules
- •Create a dedicated new branch for each pull request.
- •Never create a pull request from a reused branch.
- •Write pull request titles and descriptions in Japanese by default.
- •Never pass escaped newline sequences like
\nas PR body content. - •Use real line breaks via a body file, then verify rendered markdown.
- •For functional changes, confirm related docs are updated or include a clear reason in the PR body for why updates are unnecessary.
Create a Pull Request
- •Create and switch to a new branch:
git checkout -b <topic-branch> - •Write the PR body in a file with real line breaks, and include document impact:
- •Updated docs (for example:
docs/functional-requirements.md,docs/architecture.md) - •Or a short reason if no documentation update was needed
- •Updated docs (for example:
- •Create the PR with
gh pr create --title "<title>" --body-file <path-to-body-file> - •Verify rendering with
gh pr view --weborgh pr view <number> --json body,url
Edit an Existing Pull Request
- •Update the same body file or create a new file with real line breaks.
- •Run
gh pr edit <number> --title "<title>" --body-file <path-to-body-file> - •Verify rendered markdown again.
Template
- •Use
references/pr-body-template.mdas the base. - •Keep sections that are not used as
N/Ainstead of deleting headers.