bulk publish images#779
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 884ea19fe2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 17af5c1. Configure here.
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |

Note
Medium Risk
Bulk and search-driven visibility changes can affect many images in one command; mistaken
--searchor a large ref list could unintentionally change sharing for numerous tags, though confirmation and partial-failure reporting mitigate some of that.Overview
prime images publishandprime images unpublishnow support batch and search-driven visibility changes instead of only a single image reference.You can pass multiple plain
name:tagreferences (space- or comma-separated); the CLI callsPATCH /images/visibilityin batches of 100, prints per-image success/failure, and exits non-zero if any item fails. A single reference still uses the existing per-image visibility endpoint, including owner-prefixed forms.--search/-qpublishes or unpublishes every image whose name or tag matches a substring (scoped to personal or team context). The CLI previews the match count, prompts for confirmation (skippable with--yes), then uses the same bulk endpoint with asearchpayload. Owner-prefixed refs cannot be mixed in multi-ref mode; search strings must not include an owner prefix.Shared helpers centralize parsing, validation (refs vs search are mutually exclusive), and error handling for both commands;
no_args_is_helpwas added so barepublish/unpublishshow help.Reviewed by Cursor Bugbot for commit de99c08. Bugbot is set up for automated code reviews on this repo. Configure here.