Summarize the latest changes in this branch to create a pull request on GitHub.
- Compare the current branch against the base branch to see what changes need to be described in the pull request. Use the
$baseargument if provided, otherwise the repository's default branch (origin/HEAD):git log "${base:-origin/HEAD}"..HEAD --oneline git diff "${base:-origin/HEAD}"...HEAD
Make sure to only focus on the finalized implementation details. Since pull requests tend to have work-in-progress commits at the beginning, you should be extra mindful on whether these are still relevant in the finalized snapshot.
2. Use the pull request template to generate a .agents/scratchpad/PR.md.
3. Pause here and prompt the user to check the .agents/scratchpad/PR.md before proceeding.
4. Once edited and approved by the user, fill in the missing details in the following script and then run it. With no $base, gh targets the repository's default branch:
gh pr create ${base:+--base "$base"} \
--head "$(git rev-parse --abbrev-ref HEAD)" \
--title '[TICKET-123] category: short title' \
--body-file .agents/scratchpad/PR.md
- Delete
.agents/scratchpad/PR.mdonce successfully submitted.