Generate a PR summary and write to .ai/ pr_summary.md
Generate a pull request summary based on branch changes.
Gather Context
.ai/ workflow folder for this branch:feature/59-no-verify): look for .ai/issue-59-*feature/worktree-support): look for .ai/feature-worktree-support/ or .ai/worktree-support/ls .ai/ and match based on branch name patternsconcept.md - Feature concept and design rationaleanalysis.md - Issue analysis and requirementsplan.md - Implementation plan with specific changesAnalyze Changes
# All commits on this branch
git log main...HEAD --oneline
# Full diff
git diff main...HEAD --stat
# Changed files
git diff main...HEAD --name-only
Generate Summary
Read .github/PULL_REQUEST_TEMPLATE.md for the format specification and example.
Use context from the .ai/ folder files to write a better summary:
Write the summary to .ai/<folder>/pr_summary.md.
Create PR Command
Output the gh pr create command:
gh pr create --title "<title>" --body "$(cat .ai/<folder>/pr_summary.md)"
Report Completion