/gh-ops:fix-conflict <PR_URL>from gh-ops
Resolves merge conflicts on a GitHub PR by checking review status, then merging or rebasing accordingly, and verifying the result.
Ships in gh-ops. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Resolve merge conflicts on a PR branch.
gh pr view $ARGUMENTS --json headRefName,baseRefName,mergeable,mergeStateStatus,reviews --jq '{headRefName,baseRefName,mergeable,mergeStateStatus,humanReviews:[.reviews[]|select(.author.is_bot==false and .authorAssociation!="NONE")]}'
Determine the resolution strategy:
gh pr checkout $ARGUMENTS
git fetch origin
git merge origin/<baseRefName>
Resolve conflicts in each file, then:
git add <resolved files>
git merge --continue
git push
gh pr checkout $ARGUMENTS
git fetch origin
git rebase origin/<baseRefName>
Resolve conflicts in each file, then:
git add <resolved files>
git rebase --continue
git push --force-with-lease
gh pr view $ARGUMENTS --json mergeable,mergeStateStatus
Confirm mergeable is "MERGEABLE".
7-day visitors to each command page
8 commands in this plugin
/brief-prBrief PR — Comprehension CopilotPR comprehension copilot — generate digest + Ask Devin chat/fix-ciFix CI FailuresFix CI failures on a PR/merge-prMerge DecisionJudge and execute PR merge/respond-reviewRespond to Review CommentsRespond to review comments on a PR/self-reviewSelf-review a PR before requesting review/wait-pr-checksWait for PR ChecksWait for PR checks to complete and report resultsnpx claudepluginhub mh4gf/tq --plugin gh-opsOther plugins' commands for the same job