-
Notifications
You must be signed in to change notification settings - Fork 86
Bring the interactive site selector to pull-reprint #3729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
epeicher
merged 14 commits into
trunk
from
studio-10-bring-the-interactive-site-selector-to-pull-reprint
Jun 15, 2026
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
851f3bb
Add interactive site selector to pull-reprint for multiple connected …
epeicher 22c980f
Merge remote-tracking branch 'origin/trunk' into studio-10-bring-the-…
epeicher 97db1ce
Show [staging] badge in pull-reprint site picker
epeicher a623c79
Merge branch 'trunk' of github.com:Automattic/studio into studio-10-b…
epeicher ee37d4d
Fix missing isStaging in findMatchingWpComSite test fixture
epeicher 66f7a26
Merge remote-tracking branch 'origin/trunk' into studio-10-bring-the-…
epeicher e34606f
Merge branch 'trunk' into studio-10-bring-the-interactive-site-select…
epeicher a5ea784
Exclude Simple WordPress.com sites from pull-reprint
epeicher ff95442
Merge remote-tracking branch 'origin/studio-10-bring-the-interactive-…
epeicher fc3d1fa
Simplify non-TTY pull-reprint to error without listing sites
epeicher af52a09
Merge branch 'trunk' into studio-10-bring-the-interactive-site-select…
epeicher 1a5e8ed
Unify pull-reprint site selection with pull's syncable-sites fetcher …
epeicher 371e27d
Merge remote-tracking branch 'origin/studio-10-bring-the-interactive-…
epeicher d43d5bd
Merge branch 'trunk' into studio-10-bring-the-interactive-site-select…
epeicher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If no
--urloption was provided and this isn't a TTY, I think it's fine to just exit with an error. Realistically, the main case in which this command would be triggered in a non-TTY context is when it is spawned as a child command of Studio.If we follow this suggestion, then let's also remove the
formatWpComSitesListfunction.I could also see us moving the
if ( ! process.stdin.isTTY )into thepickWpComSiteimplementation, but I'll leave that to you, @epeicherThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed as part of fc3d1fa, with regards to moving the condition, I prefer the TTY gate at the call site: "are we allowed to prompt, and what do we do if not?" and keep the picker focused on "given a list, return a choice or a cancel."