Create a pull request for the current branch using GitHub CLI. Use after committing changes when ready to open a PR.
Create a pull request for the current branch against main using the GitHub CLI.
git status to check for uncommitted changes (warn if any exist)git log main..HEAD --oneline to see all commits in this branchgit diff main...HEAD --stat to understand the full scope of changesgh pr createUse a HEREDOC for the body to ensure proper formatting:
gh pr create --title "<concise title>" --body "$(cat <<'EOF'
## Summary
<1-3 bullet points describing what this PR does>
## Test plan
- [ ] <how to verify this works>
EOF
)"
Before creating the PR:
git push -u origin HEAD firstgh pr create --title "Fix cron machine image updates in CI/CD" --body "$(cat <<'EOF'
## Summary
- Fix CI/CD to explicitly pass --image when updating cron machines
- Cron machines created via `flyctl machine run` don't auto-update with app releases
- Fetches image from deployed app machines and passes it to machine update
## Test plan
- [ ] Deploy to staging and verify cron machine gets updated
- [ ] Check cron logs after next scheduled run
EOF
)"
Return the PR URL so the user can review it.