feat(review-hog): randomize clean review media - #73029
Merged
Merged
Conversation
Generated-By: PostHog Code Task-Id: 2d202d67-1a18-4ce3-95ed-1b0f0fdd5817
|
😎 This pull request was merged. |
Contributor
|
Hey @pauldambra! 👋 It looks like your git author email on this PR isn't your
You can fix it for this repo with: git config user.email "you@posthog.com"Or set it globally with |
Generated-By: PostHog Code Task-Id: 2d202d67-1a18-4ce3-95ed-1b0f0fdd5817
Generated-By: PostHog Code Task-Id: 2d202d67-1a18-4ce3-95ed-1b0f0fdd5817
Generated-By: PostHog Code Task-Id: 2d202d67-1a18-4ce3-95ed-1b0f0fdd5817
Generated-By: PostHog Code Task-Id: 2d202d67-1a18-4ce3-95ed-1b0f0fdd5817
pauldambra
marked this pull request as ready for review
July 22, 2026 22:45
pauldambra
enabled auto-merge (squash)
July 22, 2026 22:45
andrewm4894
approved these changes
Jul 22, 2026
There was a problem hiding this comment.
Low-risk, contained change swapping a single hardcoded GIF for a random pick among three pinned static assets in a status-comment renderer; diff matches description, has test coverage, and carries a current-head approval.
- andrewm4894 reviewed the current head.
Gate mechanics and policy version
| Gate | Result | |
|---|---|---|
| prerequisites | ✓ | all clear |
| deny-list | ✓ | no deny categories matched |
| size | ✓ | 30L, 1F substantive, 46L/2F incl. docs/generated/snapshots — within ceiling |
| tier | ✓ | T1-agent / T1b-small (46L, 2F, single-area, feat) |
| stamphog 2.0.0b3 | .stamphog/policy.yml @ 53b7152 · reviewed head 9ff7d6c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Why: Clean ReviewHog runs always show the same GIF. A small media pool keeps the reward varied and makes future additions straightforward without growing the main repository.
Changes
How did you test this code?
uv run pytest -q products/review_hog/backend/tests/test_status_comment.py::TestRenderFinalBody(6 passed). The new case catches regressions where the selected media URL and alt text are not rendered.ruff checkandhogli ci:preflight --fixpassed.👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Automatic notifications
Docs update
No docs update is needed. This only varies the media in an existing GitHub status comment.
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
PostHog Code (Codex) implemented the change and used the
/writing-testsskill to keep coverage focused on the observable rendered comment. The supplied dog image was reduced from 3.9 MB to 141 KB. The supplied panda GIF was reduced from 2.1 MB to 576 KB while preserving its animation. The main repository stores only their pinned URLs.Created with PostHog Code