Repository navigation
ci: pass the PR base branch to the Cora review action - #6
Merged
Merged
Conversation
The action defaults base-branch to origin/develop, which does not exist in this repo (only main). git diff origin/develop...HEAD failed, Cora wrote no SARIF and every PR got 'Cora produced an empty result' (formula PRs #3 and #4). Fixes #5 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Pass
base-branch: origin/${{ github.base_ref }}tocodecoradev/cora-review-action@v1in.github/workflows/cora-review.yml.Why
#5:
Cora Reviewfailed with "Cora produced an empty result" on every formula PR (#3, #4). Root cause, reproduced locally with the Cora CLI: the action'sbase-branchinput defaults toorigin/develop, and this repo only hasmain, socora review --base origin/developaborts withfatal: ambiguous argument 'origin/develop...HEAD': unknown revision(exit 1, 0-byte SARIF) and the action reports an empty result. With--base origin/mainthe same formula diff exits 0 with a 2.8 KB SARIF. It was never about the Ruby file or the secrets.Testing
--base origin/develop→ exit 1, 0 bytes, theunknown revisionerror;--base origin/main→ exit 0, 2848 bytes.Cora Reviewcheck below is the first real test on this repo.Fixes #5