:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(review_hog): show a calming gif when a review finds nothing (#72384)
Alex Lebedev9322b4439091
diff --git a/products/review_hog/backend/reviewer/status_comment.py b/products/review_hog/backend/reviewer/status_comment.pyindex febf66f1bfe3..c0ab045b38f3 100644--- a/products/review_hog/backend/reviewer/status_comment.py+++ b/products/review_hog/backend/reviewer/status_comment.py@@ -68,6 +68,15 @@ _PRIORITY_LABELS = {IssuePriority.CONSIDER: "consider",}+# A clean review deserves a reward, not a bare "nothing here". We still post the comment (so "no+# comment" can never be mistaken for "the run broke"), but swap the flat sign-off for a calming gif.+# Self-hosted on pr-assets (SHA-pinned, permanent) rather than hotlinked, to keep it copyright-clean.+_NO_ISSUES_GIF_URL = (+ "https://raw.githubusercontent.com/PostHog/pr-assets/"+ "2cfa8ec2d6e5c88ed94a98881499a09153681886/2026/07/41e56d03-cfbe-4660-b7d5-8774d805af5c.gif"+)+_NO_ISSUES_GIF_ALT = "Someone relaxing in a sunny garden"+def status_marker(report_id: str) -> str:"""The hidden marker identifying the report's status comment across turns and crashed runs."""@@ -121,7 +130,13 @@ def render_final_body()lines = ["### \U0001f994 ReviewHog reviewed this pull request", ""]if found_total == 0:- lines.append("Found no issues worth raising, so no review was posted.")+ lines.extend(+ [+ "Nothing worth raising this time, so here's a calming gif instead:",+ "",+ f"",+ ]+ )else:lines.append(found_line + ".")lines.append("")diff --git a/products/review_hog/backend/tests/test_status_comment.py b/products/review_hog/backend/tests/test_status_comment.pyindex 7ca46cd1ec9a..733330a7f929 100644--- a/products/review_hog/backend/tests/test_status_comment.py+++ b/products/review_hog/backend/tests/test_status_comment.py@@ -92,7 +92,7 @@ class TestRenderFinalBody:0,IssuePriority.SHOULD_FIX,None,- ["Found no issues worth raising, so no review was posted."],+ ["Nothing worth raising this time, so here's a calming gif instead:", "![", "pr-assets"],["Published", "stayed below"],),# Posted on a prior crashed attempt (marker skip): published, but no link to render.