Skip to content

Split commit fetching out of commit checkout - #754

Merged
Sun Haoran (haoranpb) merged 1 commit into
mainfrom
refactor/split-commit-fetch
Jul 28, 2026
Merged

Split commit fetching out of commit checkout#754
Sun Haoran (haoranpb) merged 1 commit into
mainfrom
refactor/split-commit-fetch

Conversation

@haoranpb

Copy link
Copy Markdown
Collaborator

Split the commit fetching out of commit checkout, so each function is more self-contained.

The fetch is needed because some commits got squashed when the PRs got merged, not a problem in CI because that is handled during repo checkout, mostly a problem in local dev environment.

Copilot AI review requested due to automatic review settings July 28, 2026 11:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Separates commit fetching from checkout and invokes it explicitly for code-review workspace setup.

Changes:

  • Adds conditional commit fetching.
  • Simplifies checkout behavior.
  • Updates code-review setup and tests.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/bcbench/operations/git_operations.py Adds fetch helper and simplifies checkout.
src/bcbench/operations/__init__.py Exports the fetch helper.
src/bcbench/evaluate/codereview.py Fetches missing base commits before setup.
tests/test_git_operations.py Tests checkout and fetch independently.
tests/test_codereview.py Mocks fetching during workspace tests.

Comment thread src/bcbench/evaluate/codereview.py
Comment thread tests/test_codereview.py
@haoranpb
Sun Haoran (haoranpb) merged commit 5812ae8 into main Jul 28, 2026
14 checks passed
@haoranpb
Sun Haoran (haoranpb) deleted the refactor/split-commit-fetch branch July 28, 2026 12:38
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.

4 participants