Skip to content

ci(review): pair the review with a matching claude branch - #7075

Merged
otavio merged 1 commit into
masterfrom
ci/review-claude-branch-match
Sep 10, 2026
Merged

ci(review): pair the review with a matching claude branch#7075
otavio merged 1 commit into
masterfrom
ci/review-claude-branch-match

Conversation

@otavio

@otavio otavio commented Sep 10, 2026

Copy link
Copy Markdown
Member

What

The claude repo checkout in the review workflow now resolves a branch with the same name as the PR head, falling back to master — the pattern the sibling code-repo checkout already uses.

Why

The review procedure lives in shellhub-io/claude, and the checkout took its default branch. A PR that changes the procedure therefore could not exercise the change: the workflow read the version on master. That is how shellhub-io/cloud#2544 failed its own review run — the Load review procedure step errored because the file only existed on the paired branch.

Testing

This PR has no paired claude branch, so the step resolves to master and the review runs as before. Pair a branch by name in shellhub-io/claude to see the other path taken.

The claude checkout took the default branch, so a change to the review
procedure could not be exercised by the pull request that proposes it:
the workflow read the procedure from master, where the change is not yet.
The sibling code repo already resolves a same-named branch this way.
@otavio
otavio requested a review from a team as a code owner September 10, 2026 21:44
@github-actions

github-actions Bot commented Sep 10, 2026

Copy link
Copy Markdown

Code Review Complete

The automated review ran but did not post an updated summary — this usually means no new issues were found since the previous review. If you've pushed changes and want a fresh pass, comment /review.

View job

@otavio
otavio merged commit 6f72dbb into master Sep 10, 2026
42 checks passed
@otavio
otavio deleted the ci/review-claude-branch-match branch September 10, 2026 22:28
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