Files
timmy-config/scripts/visual_pr_reviewer.py
Alexander Whitestone 46d094460a
Some checks failed
Architecture Lint / Linter Tests (pull_request) Successful in 32s
PR Checklist / pr-checklist (pull_request) Failing after 6m29s
Smoke Test / smoke (pull_request) Failing after 23s
Validate Config / YAML Lint (pull_request) Failing after 13s
Validate Config / JSON Validate (pull_request) Successful in 9s
Validate Config / Python Syntax & Import Check (pull_request) Failing after 38s
Validate Config / Shell Script Lint (pull_request) Failing after 1m9s
Validate Config / Cron Syntax Check (pull_request) Successful in 13s
Validate Config / Deploy Script Dry Run (pull_request) Successful in 11s
Validate Config / Playbook Schema Validation (pull_request) Successful in 20s
Architecture Lint / Lint Repository (pull_request) Has been cancelled
Validate Config / Python Test Suite (pull_request) Has been cancelled
fix: add python3 shebang to visual_pr_reviewer.py (#681)
2026-04-15 02:46:16 +00:00

13 lines
467 B
Python

#!/usr/bin/env python3
import json
from hermes_tools import browser_navigate, browser_vision
def review_pr():
analysis = browser_vision(
question="Compare the two provided screenshots of the UI. Does the 'After' match the design spec? List all discrepancies. Provide a PASS/FAIL."
)
return {"status": "PASS" if "PASS" in analysis.upper() else "FAIL", "analysis": analysis}
if __name__ == '__main__':
print(json.dumps(review_pr(), indent=2))