Skip to content

ci: pass the PR base branch to the Cora review action - #6

Merged
ajianaz merged 1 commit into
mainfrom
ci/cora-review-base-branch
Oct 8, 2026
Merged

ajianaz merged 1 commit into
mainfrom
ci/cora-review-base-branch

Conversation

@ajianaz

@ajianaz ajianaz commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

What

Pass base-branch: origin/${{ github.base_ref }} to codecoradev/cora-review-action@v1 in .github/workflows/cora-review.yml.

Why

#5: Cora Review failed with "Cora produced an empty result" on every formula PR (#3, #4). Root cause, reproduced locally with the Cora CLI: the action's base-branch input defaults to origin/develop, and this repo only has main, so cora review --base origin/develop aborts with fatal: ambiguous argument 'origin/develop...HEAD': unknown revision (exit 1, 0-byte SARIF) and the action reports an empty result. With --base origin/main the same formula diff exits 0 with a 2.8 KB SARIF. It was never about the Ruby file or the secrets.

Testing

  • Local repro on a formula-only diff: --base origin/develop → exit 1, 0 bytes, the unknown revision error; --base origin/main → exit 0, 2848 bytes.
  • This PR runs the changed workflow (pull_request uses the head version): the Cora Review check below is the first real test on this repo.
  • A throwaway PR with a formula-only change on top of this branch is used to confirm the formula case, then closed unmerged.

Fixes #5

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]>
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 6bcd7b1 into main Oct 8, 2026
9 checks passed
@ajianaz
ajianaz deleted the ci/cora-review-base-branch branch October 8, 2026 08:01
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.

ci: Cora Review fails with 'empty result' on formula-only PRs (every uteke release)

1 participant