Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(review): harden ce-review base resolution#452

Merged
tmchow merged 5 commits into
mainfrom
feat/review-skill-investigation
Mar 30, 2026
Merged

fix(review): harden ce-review base resolution#452
tmchow merged 5 commits into
mainfrom
feat/review-skill-investigation

Conversation

@tmchow
Copy link
Copy Markdown
Collaborator

@tmchow tmchow commented Mar 30, 2026

Summary

This tightens ce-review branch and PR scope handling in two places that were easy to get wrong in practice.

First, it makes the previous-comments reviewer explicitly PR-only and aligns the review docs so standalone branch reviews do not dispatch a reviewer that requires PR context. Second, it hardens resolve-base.sh for forked and shallow checkouts by fetching explicit remote-tracking refs and retrying merge-base resolution after unshallowing when the checkout history is incomplete.

Testing

  • bun test tests/resolve-base-script.test.ts
  • bun test

Why this matters

The new integration test suite executes the real resolve-base.sh script against temp git repos, including detached shallow checkout scenarios that approximate GitHub Actions. That caught real base-resolution failures and now protects the forked and CI review path from regressing.

Clarify that previous-comments only runs for PR reviews, make
persona model guidance tolerant of platforms without explicit model
overrides, and harden resolve-base.sh for shallow and forked checkouts.

Add an integration test suite that executes resolve-base.sh against
local git repos, including detached shallow checkout scenarios that
approximate GitHub Actions.
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b1addfe48f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/resolve-base-script.test.ts Outdated
tmchow added 4 commits March 30, 2026 00:53
Drop the detached-shallow test's assumption that a local main branch exists
after cloning. Git's branch creation differs across platforms, but the test
only needs origin/HEAD to exist to exercise the intended code path.
@tmchow tmchow merged commit 638b38a into main Mar 30, 2026
2 checks passed
@github-actions github-actions Bot mentioned this pull request Mar 30, 2026
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