Skip to main content

Module screenshots

Module screenshots 

Source
Expand description

Screenshots on the PR. The agent lists image paths in its final JSON, orch pushes the images to a branch that never merges and comments on the PR with links pinned to that commit

Structs§

Prepared
An image checked and placed at its path on the screenshots branch

Constants§

SCREENSHOTS_BRANCH
Branch that holds the images, used as no PR base or head, and cleanup deletes task branches only

Functions§

allowed_roots
Roots an image may live in: the worktree and its git dir, which stays out of the PR commit
build_comment
The PR comment, with links pinned to commit so they render in a private repository
build_unpublished_comment
PR comment when the images never landed on the screenshots branch
prepare
Check each listed image, and skip a bad entry with a reason so it does not drop the others
publish
Push the images on top of the screenshots branch, with a throwaway index so the worktree stays untouched, and return the commit the links point at