Pin screenshots

A build pin can keep curated screenshots: PNG, JPEG or WebP pictures, in order, each with a one-line caption, kept in git as a tree under refs/shots/<label> (git/shots.ts). They go with the pin: deleting the pin deletes them, and a label pinned again starts bare.

- GET /api/v1/repos/:owner/:name/builds/:label/shots lists { items, next_cursor, tree }; each item has file, caption, type, size and a url. - POST …/shots uploads one: multipart with the picture as shot, optional caption and at. - GET …/shots/looks lists the pictures the forge took of the pin's commit that you may fetch; POST …/shots/looks with { "looks": [id, …] } copies them in, in that order. Picking publishes them to everyone who reads the repository. - POST …/shots/:file takes { caption } and/or { move: "up" | "down" }; DELETE …/shots/:file removes one. - Every write may carry at, the tree it was read from (the at query parameter on DELETE); a list changed since answers 409 moved. Two writers racing without at still cannot both win: the loser gets moved. - GET /:owner/:name/builds/:label/shots/:file serves the picture (immutable when ?v= matches).

Left out: the demo/arcade side of Jay Moran's port, activity wording for build.shots.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs