pr-to-production

Installation
SKILL.md

PR to Production Branch (Release)

Create release PR from main to production for semantic-release.

Workflow

  1. 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.
  2. Gather context (parallel):

    • git log origin/production..origin/main --oneline for commits to release
    • git ls-remote --tags origin | grep -E 'refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$' | sed 's/.*refs\/tags\///' | sort -V | tail -1 for latest release version from remote
    • git rev-list --count origin/production..origin/main to check if main is ahead of production
  3. Analyze commits:

    • Categorize by type: feat, fix, chore, etc.
    • Calculate expected version bump
Related skills
Installs
1
GitHub Stars
4.9K
First Seen
14 days ago