Repository navigation
Respect -n before prompting for an organization - #312
Open
ryangjchandler wants to merge 1 commit into
Open
ryangjchandler wants to merge 1 commit into
ryangjchandler wants to merge 1 commit into
Conversation
With several stored tokens and no default organization, running a command with -n at a terminal reached the organization picker, which failed with a bare "Required." instead of explaining how to choose an organization. Amp-Thread-ID: https://ampcode.com/threads/T-073981ab-5fb5-4154-bd75-f7e64fc0af05 Co-authored-by: Ryan Chandler <ryan@laravel.com>
ryangjchandler
marked this pull request as ready for review
November 26, 2026 15:42
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
With API tokens for more than one organization and no default organization set for the repository, running a command non-interactively from a terminal still opens the organization picker. That prompt can't be answered, so the command fails with no hint about what is missing:
--jsonwithout-nis worse: it waits at the hidden picker with no output.After this change,
-n,--no-interaction, and--jsonprint the existing "Multiple API tokens found" message, which says how to choose an organization. Running without those flags still shows the picker.