Add EvalOps PR lens review workflow#75
Conversation
PR SummaryMedium Risk Overview Adds a Ruby helper ( Documents required secrets and behavior in Reviewed by Cursor Bugbot for commit 99f86c2. 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 2 potential issues.
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 99f86c2. Configure here.
| )" | ||
| ruby org-defaults/.github/scripts/evalops-pr-lens-review.rb post-status \ | ||
| --repo "${{ matrix.repo }}" \ | ||
| --sha "${{ steps.refs.outputs.head_sha }}" \ |
There was a problem hiding this comment.
Pending and success statuses target different SHAs
Medium Severity
The "Mark lens pending" step posts the pending status to matrix.head_sha (from the discover job), but the "Complete lens status" step posts the success status to steps.refs.outputs.head_sha (fetched live from the API). If the PR is force-pushed between discovery and lens review, these SHAs differ — leaving a stale "pending" status on the old commit that never resolves. The error step correctly uses matrix.head_sha, making the inconsistency with the success step more apparent.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 99f86c2. Configure here.


Summary
evalops/platform,evalops/deploy, andevalops/maestro-internal.evalops-pr-lens/<lens>.EVALOPS_PR_LENS_TOKENandANTHROPIC_API_KEYfrom 1Password so the workflow can write cross-repo statuses/comments and use Opus.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.ymlruby .github/scripts/evalops-pr-lens-review.rb discover --repos 'evalops/platform,evalops/deploy,evalops/maestro-internal' --matrix-output /tmp/pr-lens-matrix.json --targets-output /tmp/pr-lens-targets.jsonCredential setup
EVALOPS_PR_LENS_TOKENfromop://DevTools/GitHub Automation/credential.ANTHROPIC_API_KEYfromop://EvalOps Automation/Anthropic/credential.