Skip to content

chore: move PR conflict helper to root shell dir - #12656

Merged
zkochan merged 1 commit into
mainfrom
fix-wt-script
Jun 25, 2026
Merged

zkochan merged 1 commit into
mainfrom
fix-wt-script

Conversation

@zkochan

@zkochan zkochan commented Jun 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Move resolve-pr-conflicts.sh from pnpm11/shell/ to root shell/.
  • Keep the conflict helper in a repo-level directory because it handles whole-repo PR rebases, not only TypeScript workspace changes.
  • No pacquet port is needed because this is repository tooling, not a CLI behavior change.

Squash Commit Body

Move the PR conflict resolution helper out of pnpm11/shell and into root shell/.

The helper is invoked by the git-wt PR hook and applies to whole-repo PR conflict resolution, including non-TypeScript changes, so it should not live under the TypeScript workspace.

Checklist

  • The change is implemented in both the TypeScript CLI and the Rust pacquet/ port, or the description notes what still needs porting.
  • Updated the documentation if needed.

Written by an agent (Codex, GPT-5).

@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

💤 Files selected but had no reviewable changes (1)
  • shell/resolve-pr-conflicts.sh
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ca771edc-5a1d-473f-bc7b-8d5802d41a08

📥 Commits

Reviewing files that changed from the base of the PR and between 1a96a43 and 2a00040.

📒 Files selected for processing (1)
  • shell/resolve-pr-conflicts.sh

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-wt-script

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Summary by Qodo

Move PR conflict resolution helper to repo-level shell/ directory
✨ Enhancement 🕐 10-20 Minutes

Grey Divider

Description

• Relocate resolve-pr-conflicts.sh to root shell/ to reflect whole-repo scope.
• Keep a stable, repo-level entrypoint for git-wt-driven PR rebases and conflict resolution.
• No pacquet port required because this is repository tooling, not CLI behavior.
Diagram

graph TD
  Dev["Developer"] --> Script["shell/resolve-pr-conflicts.sh"] --> GH["gh CLI"] --> Git["git rebase"] --> Decide{"conflicts?"}
  Decide -- "clean" --> Push["git push (force-with-lease)"] --> Verify["GitHub PR mergeable"]
  Decide -- "pnpm-lock only" --> Pnpm["pnpm install --lockfile-only"] --> Push --> Verify
  Decide -- "manual files" --> Manual["manual resolve + --continue"] --> Push --> Verify
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Keep helper under `.git-wt/`
  • ➕ Groups the helper with the hook/worktree workflow that invokes it
  • ➕ Reduces top-level directory surface area
  • ➖ Makes the script feel hook-internal even though it’s useful standalone
  • ➖ Less discoverable for contributors not using git-wt
2. Expose as `just resolve-pr-conflicts ` (or npm script)
  • ➕ Single canonical entrypoint; easier onboarding via justfile/package scripts
  • ➕ Can centralize prerequisites and messages alongside other dev workflows
  • ➖ Adds coupling to a specific task runner or package scripts
  • ➖ Still needs a real script somewhere for portability and direct usage
3. Convert to a small cross-platform CLI (TS/Rust)
  • ➕ Better ergonomics, validation, and testability than shell
  • ➕ Potentially more portable across shells/OSes
  • ➖ Overkill for a repo-internal helper; higher maintenance burden
  • ➖ Requires packaging/installation steps for contributors

Recommendation: Placing the helper in root shell/ is the best tradeoff: it reflects whole-repo scope, keeps a stable invocation path, and avoids coupling to the TypeScript workspace or adding unnecessary CLI surface area.

Files changed (1) +0 / -0

Other (1) +0 / -0
resolve-pr-conflicts.shAdd repo-level PR rebase/conflict helper script +0/-0

Add repo-level PR rebase/conflict helper script

• Introduces (or relocates) a repository-level script to rebase a PR branch onto the latest base branch using 'gh' metadata, auto-resolve 'pnpm-lock.yaml' conflicts by regenerating the lockfile, and guide/manual-gate non-lockfile conflicts via a '--continue' mode before force-pushing and verifying GitHub mergeability.

shell/resolve-pr-conflicts.sh

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Jun 25, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Auto-approved notes - no code review findings
- 'auto_approve_for_no_suggestions' flag enabled

Previous review results

Review updated until commit 2a00040

Results up to commit 2a00040


🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Great, no issues found!

Qodo reviewed your code and found no material issues that require review
Auto-approved notes - no code review findings
- 'auto_approve_for_no_suggestions' flag enabled

Qodo Logo

@zkochan
zkochan enabled auto-merge June 25, 2026 11:53
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code review by qodo was updated up to the latest commit 2a00040

@zkochan
zkochan added this pull request to the merge queue Jun 25, 2026
@zkochan
zkochan removed this pull request from the merge queue due to a manual request Jun 25, 2026
@zkochan
zkochan merged commit 5855604 into main Jun 25, 2026
29 checks passed
@zkochan
zkochan deleted the fix-wt-script branch June 25, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant