Git PR Workflow
Workflow
- •
Run typecheck to ensure code is valid:
bashpnpm check-types
- •
Fetch latest base branch and create a new branch (default:
develop):bashgit fetch origin <base-branch> git checkout -b <branch-name> origin/<base-branch>
Branch naming:
fix/short-descriptionorfeat/short-description - •
Stage and commit changes:
bashgit add -A git commit -m "<type>(<scope>): <short description>"
- •
Deslop: Review your changes and remove AI-generated slop:
- •Extra comments that a human wouldn't add or inconsistent with the rest of the file
- •Extra defensive checks or try/catch blocks abnormal for that area of the codebase
- •Casts to
anyor invalid type assertions to work around type issues - •Style inconsistent with the file
- •Obvious skipped optimizations (e.g. not using Promise.all on independent promises)
If changes made, commit them:
bashgit add -A git commit -m "deslop"
- •
Push and create PR:
bashgit push -u origin <branch-name> gh pr create --base <base-branch> --title "<commit title>" --body "<description>"
- •
Return the PR URL to the user.
Notes
- •Target
developbranch unless user specifies otherwise - •Use conventional commit format:
fix,feat,refactor,chore, etc. - •No emojis in commits or PR
- •PR description should be minimal - a few sentences max, no headers/sections unless necessary
- •Commit messages: short title, optional one-liner body if needed