Skip to content

test: verify PR output remains immutable - #4014

Draft
k11kirky wants to merge 1 commit into
mainfrom
posthog-code/test-pr-output-immutability
Draft

test: verify PR output remains immutable#4014
k11kirky wants to merge 1 commit into
mainfrom
posthog-code/test-pr-output-immutability

Conversation

@k11kirky

Copy link
Copy Markdown
Contributor

Problem

The PR output utility should remain a pure transformation so callers can safely reuse their existing output objects.

Changes

Add a regression test confirming buildPrOutput does not mutate its input.

How did you test this?

  • git diff --check
  • Automated test not run: repository dependencies are not installed, so biome and vitest are unavailable.

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

Generated-By: PostHog Code
Task-Id: 577137db-feb7-4bef-be3e-38bdfd8439ea
@trunk-io

trunk-io Bot commented Jul 30, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 682170e.

@posthog

posthog Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

👋 Visual changes detected for this PR.

Review and approve in PostHog Visual Review

If these changes are unexpected, they may be caused by a flaky test or a broken snapshot on master. Don't approve — rerun the job or wait for a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant