Ship Changes
Context
Run in parallel:
- •
git status(never -uall) - •
git diff HEAD - •
git log --oneline -10
Workflow
- •Review all changes from status and diff
- •Analyze recent commit style from log
- •Check for quality check commands:
- •If
package.jsonexists, check forlintandtestscripts - •Run available checks in parallel:
npm run lint,npm test - •If no package.json, skip quality checks
- •If
- •If checks fail: report errors, STOP — do not commit or push
- •Generate commit message based on changed files matching repo style
- •Stage all files:
git add -A - •Commit with HEREDOC format
- •Push:
git push(current branch) - •Run
git statusafter to verify
Rules
- •Stage ALL changes with
git add -A - •Generate message from changed files, match repo style
- •Only run npm commands if package.json exists with those scripts
- •NEVER push if lint or tests fail
- •NEVER force push (
-for--force) - •NEVER skip hooks
- •NEVER commit secrets
- •Push to current branch only