Skip to content

fix(review-gate): handle a PR without a review comment on newer jq - #140

Merged
jmarek41 merged 1 commit into
mainfrom
fix/review-gate-no-comment
Oct 28, 2026
Merged

jmarek41 merged 1 commit into
mainfrom
fix/review-gate-no-comment

Conversation

@jmarek41

@jmarek41 jmarek41 commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Problem

ubuntu-latest now runs ubuntu-26.04 with jq 1.8, where rtrimstr fails on null. review_meta passed null to it when the PR had no review comment yet ("" | split("\n") is []), so the Review gate job failed with endswith() requires string inputs on the first events of every PR.

Changes

  • review_meta falls back to an empty line; a test covers a PR without comments.
  • universal-cloud-ai-pr-review.yml uses universal-review-gate and universal-ai-pr-review-publish from @main while the review is being tuned, so fixes reach callers on @main without a release. bump-action-refs.sh pins them to the release tag as usual.

Evidence

bats for the gate, publish and notify actions passes; actionlint is clean. The failing case was a PR's first pull_request_target event before the bot's comment existed.

On ubuntu-26.04 runners jq 1.8 makes rtrimstr fail on null, which split
returns for an empty body, so the gate failed before the first review.
The AI review workflow now uses the nested actions from main while it is
tuned; the release script pins them to the release tag.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@jmarek41
jmarek41 merged commit e20577e into main Oct 28, 2026
2 checks passed
@jmarek41
jmarek41 deleted the fix/review-gate-no-comment branch October 28, 2026 07:49
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