Git Workflow Automation
Streamline your team's git workflow with automated branch management, changelog generation, and PR templates.
Commands
# Squash all commits on current branch into one
python scripts/git_squash.py --branch feature/xxx --base main
# Generate changelog from commit history
python scripts/gen_changelog.py --since v1.0.0 --output CHANGELOG.md
# Clean up merged branches
python scripts/cleanup_branches.py --remote origin --exclude main,develop
# Create PR from current branch with template
python scripts/create_pr.py --title "feat: new feature" --template pr_template.md
Branch Naming Convention
This tool enforces: {type}/{ticket-id}-{short-desc}
Valid types: feat, fix, chore, docs, refactor, test, perf, ci
Integration
Add to .git/hooks/pre-commit to enforce branch naming and prevent commits to protected branches.

