Include PR review context in lens prompts#79
Conversation
PR SummaryMedium Risk Overview Updates Reviewed by Cursor Bugbot for commit cb94a0f. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit cb94a0f. Configure here.
| end | ||
|
|
||
| [ | ||
| "Pull request body:\n#{short_text(pr_json["body"], max_bytes: 2_500).empty? ? "(none)" : short_text(pr_json["body"], max_bytes: 2_500)}", |
There was a problem hiding this comment.
Duplicate short_text call for PR body
Low Severity
short_text(pr_json["body"], max_bytes: 2_500) is evaluated twice with identical arguments on the same line — once for the .empty? check and once for the value. Storing the result in a local variable would eliminate the redundant computation and make the ternary easier to read.
Reviewed by Cursor Bugbot for commit cb94a0f. Configure here.


Summary
Why
The first successful sweep produced zero high-confidence findings, but active deploy PRs had Bugbot review comments that the lens never saw. This closes that context gap instead of lowering the confidence threshold and increasing comment noise.
Test plan
ruby -c .github/scripts/evalops-pr-lens-review.rbruby -Itest -e 'ARGV.each { |path| require "./#{path}" }' test/*_test.rbruby -e 'require "yaml"; ARGV.each { |f| YAML.load_file(f); puts "ok #{f}" }' .github/workflows/*.yml .github/workflow-templates/*.ymlgit diff --checkactionlint .github/workflows/evalops-pr-lens-review.ymlevalops/deploy#2832confirmed Bugbot inline review comments are included.