Push the current branch and create a pull request against docker/docs. Use after changes are committed and reviewed. "create a PR", "submit the fix", "open a pull request for this".
Push the branch and create a properly structured pull request.
git log --oneline main..HEAD # confirm commits exist
git diff --quiet # confirm no unstaged changes
Confirm origin points to your fork, not upstream:
git remote get-url origin
Then push:
git push -u origin <branch-name>
Derive the fork owner dynamically:
FORK_OWNER=$(git remote get-url origin | sed -E 's|.*[:/]([^/]+)/[^/]+(\.git)?$|\1|')
gh pr create --repo docker/docs \
--head "${FORK_OWNER}:<branch-name>" \
--title "<concise summary under 70 chars>" \
--body "$(cat <<'EOF'
## Summary
<1-2 sentences: what was wrong and what was changed>
Closes #NNNN
Generated by [Claude Code](https://claude.com/claude-code)
EOF
)"
Keep the body short. Reviewers need to know what changed and why — nothing else.
If while working on this PR you discovered something non-obvious about the repo — a convention not documented in AGENTS.md, a gotcha that tripped you up, a pattern that should be codified — add a Learnings section to the PR