provider visual_review POST
/api/projects/{project_id}/visual_review/runs/{id}/finalize/ @utdk/posthog
/api/projects/{project_id}/visual_review/runs/{id}/finalize/ visual_review_runs_finalize_create
Finalize a fully-reviewed run: commit the approved baseline and green the gate.
Commits exactly the snapshots approved in the DB (tolerated ones keep their baseline)
and only succeeds once every changed/new snapshot is resolved. With approve_all=true,
any still-pending changed/new snapshot is approved first. With commit_to_github=false
the server returns the signed baseline YAML instead of committing it.
- id path required
- string
- project_id path required
- Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- string
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.visualReviewRunsFinalizeCreate({
"approve_all": false,
"commit_to_github": true,
"add_images_to_comment_on_pr": false
})