name: pr description: PR workflow - validate, branch, commit, push, PR, checkout main, rebase, squash merge. Use when submitting changes. license: Apache-2.0 metadata: author: ahmadawais version: "0.0.1"
PR Workflow
Steps
Validate:
pnpm buildBranch: Ask user or suggest (
fix/,feat/,refactor/,docs/)git checkout -b {branch-name}Commit: Stage specific files, use emoji-log format
FIX:|NEW:|IMPROVE:|DOC:
git add {files} && git commit -m "$(cat <<'EOF' FIX: Description EOF )"Push:
git push -u origin {branch}PR:
gh pr create --title "FIX: Description" --body "$(cat <<'EOF' ## Summary - Changes ## Test plan - [ ] Tests EOF )"Main:
git checkout main && git pull --rebase origin mainMerge: Ask user, then:
gh pr merge {number} --squash --delete-branch git pull --rebase origin main