Attach artifacts to pull requests
Stage as you work with put. Attach when a PR is already open. Share a URL for any file.
Attach files to a PR #
With a pull request open, run attach from its branch:
uploads attach ./screenshot.pngThe files land on the PR as one managed comment:
Run attach again and the same comment updates in place.
attach finds the repo and PR through the gh CLI. To target something else, add --pr <n> or
--issue <n>, plus --repo owner/name for another repo.
Issue artifacts #
An issue keeps the same managed comment a pull request does, and also one Markdown artifact named
uploads.sh media. Images use uploads.sh URLs. Video is a link. When the issue has a gallery, a
link artifact named uploads.sh gallery points at it.
That is on by default. Turn it off for one command with --no-issue-artifacts, for one repo with
issueArtifacts: false, or for the workspace under
Settings → GitHub. Pull requests stay on the managed comment only.
Stage before a PR exists #
No PR yet? Upload with put. On any branch other than the default, it stages the file for that
branch’s future PR:
uploads put ./after.pnguploads screenshot stages the same way. When the PR opens, staged files move
onto it: right away with the GitHub App, or on your next
uploads attach.
Staging several files at once? Use uploads attach --branch.
To see what’s queued, run uploads staged:
$ uploads stagedafter.webp 94.2 KB staged 2026-07-22T14:00:00Z https://storage.uploads.sh/gh/you/app/branch/feat-nav/after.webpbinding: self — these auto-attach when this branch's PR opensonce the PR exists: uploads attach --promoteIf binding shows anything other than self, the files won’t attach on their own. See
GitHub App: staging before a PR exists to fix it.
Staged the wrong branch, or the files are leftover? uploads unstage --branch <name>
marks them unstaged. The file and its URL stay. They drop out of uploads staged
and out of auto-promotion. Add --dry-run to preview. Pass object keys instead of
--branch to unstage those objects only.
Get a URL for a file #
put uploads a file and prints a public URL and Markdown you can paste anywhere:
$ uploads put ./shot.png>> optimized 411.5 KB → 94.2 KB (shot.webp)URL: https://storage.uploads.sh/screenshots/app/2026-07-12/shot-9f2c1a.webpMARKDOWN: Common flags:
--pr <n>also posts the file to that PR.--url <url>uploads a file from the web instead of a local path.--no-optimizekeeps the original bytes.--meta path=/settingsnames the page a screenshot shows. The comment shows it under the image.--screen "Chat"names a mobile or desktop app screen that has no page path. The comment shows it under the image too, next to the path if both are set.--caption "Empty state after deleting the last project"says what the shot shows, in up to 140 characters. The comment shows it as plain text under the image, before the other labels.
put converts images to WebP and strips their EXIF data. It keeps a few capture details, like
viewport and device, and shows them on the file’s public page. See
Good to know for what’s kept and how to turn it off.
Pair a before and after #
Tag two images or two videos with --state and they render side by side in a Before and After table
in the comment:
uploads put ./hero-before.webp --state beforeuploads put ./hero-after.webp --state afterIf one comment has several pairs, give each pair the same --meta path=<page> or --screen <name>
value so they match up. Without either, files pair by name, so hero-before.webp matches hero-after.webp.
Several pairs share one table, a row each (one table per screen when the comment is grouped, below).
Once a comment has a pair, a shot marked after with no
before at its page or screen still gets a row, with a dashed “No before shot” in the empty cell (and
the same for a lone before). Without any pair, files with a state show on their own, as usual.
Phone screenshots share rows, up to three across, so a set of mobile screens reads at a glance. When
most shots in a comment have a --screen or --meta path, the comment groups them under a heading
per screen or page: that screen’s before and after first, then its other shots. Shots without either
go last, under Other.
A repo can require a before and after on every pull request that changes UI files.
uploads put <file> --pr 42· docs