Gw Pr Sync banner
o-gi o-gi

Gw Pr Sync

Git community

Description

# gw-pr-sync - Sync PR with latest main branch Sync a pull request with the latest changes from the main branch. ## Usage ``` /user:gw-pr-sync [PR-number] ``` ## Workflow 1. **Get PR Information** ```bash PR_NUM=$1 PR_INFO=$(gh pr view $PR_NUM --json headRefName,state) BRANCH_NAME=$(echo "$PR_INFO" | jq -r '.headRefName') PR_STATE=$(echo "$PR_INFO" | jq -r '.state') ``` 2. **Check PR State** ```bash if [ "$PR_STATE" != "OPEN" ]; then echo "❌ PR #$PR_NUM is not o

Installation

Installs to ~/.claude/skills/o-gi-claude-code-commands-gw-pr-sync/SKILL.md

Terminal
mkdir -p ~/.claude/skills/o-gi-claude-code-commands-gw-pr-sync && curl -fsSL https://raw.githubusercontent.com/o-gi/claude-code-commands/HEAD/commands/gw-pr-sync.md -o ~/.claude/skills/o-gi-claude-code-commands-gw-pr-sync/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository