1.5 KiB
1.5 KiB
Create Pull Request
Based on the Instructions below, take the Variables follow the Run section to create a pull request. Then follow the Report section to report the results of your work.
Variables
branch_name: $1 issue: $2 plan_file: $3 adw_id: $4
Instructions
- Generate a pull request title in the format:
<issue_type>: #<issue_number> - <issue_title> - The PR body should include:
- A summary section with the issue context
- Link to the implementation
plan_fileif it exists - Reference to the issue (Closes #<issue_number>)
- ADW tracking ID
- A checklist of what was done
- A summary of key changes made
- Extract issue number, type, and title from the issue JSON
- Examples of PR titles:
feat: #123 - Add user authenticationbug: #456 - Fix login validation errorchore: #789 - Update dependenciestest: #1011 - Test xyz
- Don't mention Claude Code in the PR body - let the author get credit for this.
Run
- Run
git diff origin/main...HEAD --statto see a summary of changed files - Run
git log origin/main..HEAD --onelineto see the commits that will be included - Run
git diff origin/main...HEAD --name-onlyto get a list of changed files - Run
git push -u origin <branch_name>to push the branch - Set GH_TOKEN environment variable from GITHUB_PAT if available, then run
gh pr create --title "<pr_title>" --body "<pr_body>" --base mainto create the PR - Capture the PR URL from the output
Report
Return ONLY the PR URL that was created (no other text)