pr-to-production
Installation
SKILL.md
PR to Production Branch (Release)
Create release PR from main to production for semantic-release.
Workflow
-
Fetch latest from remote (required first):
git fetch origin production main --quiet- IMPORTANT: Always use remote refs (
origin/production,origin/main) for comparison. Local branches may be stale.
-
Gather context (parallel):
git log origin/production..origin/main --onelinefor commits to releasegit ls-remote --tags origin | grep -E 'refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$' | sed 's/.*refs\/tags\///' | sort -V | tail -1for latest release version from remotegit rev-list --count origin/production..origin/mainto check if main is ahead of production
-
Analyze commits:
- Categorize by type: feat, fix, chore, etc.
- Calculate expected version bump