Publish (internal)
Internal executor for the public @gh-push boundary.
Responsibility
- Own runnable terminal commands for status, commit, and push.
- Respect publish safety rules (especially
mainrestrictions). - Do not create or edit PR metadata.
Command runbook
1) Validate branch safety
BRANCH=$(git branch --show-current)
- If
BRANCHismain, require explicit user confirmation before push.
2) Inspect working tree
git status --short
- If dirty, stage and commit with an appropriate message.
3) Commit when needed
git add -A
git commit -m "<message>"
4) Push branch
Use tracking push when needed:
git push -u origin HEAD
Otherwise:
git push
5) Verify
git status --short
Report pushed branch and stop.