Skip to content

: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.

feat(reviewhog): expand clean review gif rotation (#105999)

Paul D'Ambracbfdce81f3e3
diff --git a/products/review_hog/backend/reviewer/status_comment.py b/products/review_hog/backend/reviewer/status_comment.py
index a4c277c0447c..6c3d1aff2c9c 100644
--- a/products/review_hog/backend/reviewer/status_comment.py
+++ b/products/review_hog/backend/reviewer/status_comment.py
@@ -91,9 +91,7 @@ _THRESHOLD_ATTRIBUTIONS = {
# Only personal thresholds live in someone's PostHog Review settings; the default variant has no page to point at.
_PERSONAL_THRESHOLD_SOURCES = frozenset({"author", "override"})
-# 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 calming media.
-# Assets are optimized and self-hosted on pr-assets (SHA-pinned, permanent) rather than hotlinked.
+# A clean review still posts a comment so silence never looks like a failed run.
_NO_ISSUES_MEDIA = (
(
"https://raw.githubusercontent.com/PostHog/pr-assets/"
@@ -110,6 +108,18 @@ _NO_ISSUES_MEDIA = (
"3cf9366a6d40bc591284b00304cb6ecd84164343/2026/07/c755cc49-ef33-4435-87e0-51074f110b19.gif",
"A panda relaxing and waving",
),
+ (
+ "https://media.tenor.com/v-9wvFB5nBEAAAAC/twin-peaks-dance.gif",
+ "The dancing man in the red room from Twin Peaks",
+ ),
+ (
+ "https://media.tenor.com/6QRLKh0iM1wAAAAC/spoons-salad-fingers.gif",
+ "Salad Fingers holds a rusty spoon",
+ ),
+ (
+ "https://media.tenor.com/C4ta65SucIkAAAAC/dvd.gif",
+ "The DVD logo bounces into a corner of an empty screen",
+ ),
)
@@ -203,7 +213,7 @@ def render_final_body(
media_url, media_alt = random.choice(_NO_ISSUES_MEDIA)
lines.extend(
[
- "Nothing worth raising this time, so here's a calming picture instead:",
+ "Nothing worth raising this time. Enjoy the moment:",
"",
f"![{media_alt}]({media_url})",
]
diff --git a/products/review_hog/backend/tests/test_status_comment.py b/products/review_hog/backend/tests/test_status_comment.py
index 8b645c0d14ee..39dfd05829dd 100644
--- a/products/review_hog/backend/tests/test_status_comment.py
+++ b/products/review_hog/backend/tests/test_status_comment.py
@@ -131,7 +131,7 @@ class TestRenderFinalBody:
0,
IssuePriority.SHOULD_FIX,
None,
- ["Nothing worth raising this time, so here's a calming picture instead:", "![", "pr-assets"],
+ ["Nothing worth raising this time. Enjoy the moment:", "!["],
["Published", "stayed below"],
),
# Posted on a prior crashed attempt (marker skip): published, but no link to render.