feat: re-prompt for a repository name when the provider rejects it - #1373
Merged
Conversation
Closes #1372 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
l2ysho
added a commit
that referenced
this pull request
Sep 1, 2026
Master's #1371 and #1373 rewrote the same functions this branch generalizes. Resolved by keeping this branch's multi-provider shape and folding both of master's behaviours into it: - `getGitConnectUrl` keeps the optional `authorize` block, so GitLab and Bitbucket still fall back to the Console page, and now also sends `routePrefix` for an organization login - `ensureUsableIntegration` keeps the Console hand-off race for providers the CLI cannot authorize, and takes master's per-poll re-read of which grant is missing, its never-open-the-same-URL-twice rule, and the account-aware wait message — with provider labels rather than ids - `runGitSourceFlow` keeps the non-fatal clone and per-account `providerId`, and takes master's re-prompt for a rejected repository name - `notAuthorized` and `noWorkspace` name the Apify account and the provider label; next steps and `getGitStopUrl` carry the account - both test suites kept in full Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
Note
TL;DR —
apify create --source githubno longer throws away the whole run when GitHub rejects the repository name. In a TTY it asks for another name and retries; without one it stops as before.Closes #1372
apify create --source githubstopped the whole run when the Git provider rejected the repository name — taken, or malformed. The name is fixable on the spot and nothing has been created at that point, so an interactive run now prints the provider's message and asks for another name, then retries.--json, CI, piped stdin) the run keeps the previousrepoNameRejectedstop and its next steps.runGitSourceFlow— the retry sends the new name, the non-interactive path still stops.Verified by hand against GitHub: taken name in a TTY re-prompts and the run completes; the same command with stdin from
/dev/nullstops with the error.No new dependencies, so no install-size change.
🤖 Generated with Claude Code