-
Notifications
You must be signed in to change notification settings - Fork 367
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
Connecting site by git remote url not working for private repos #258
Comments
The API call needs Needs to get updated here: cli/src/utils/link/link-by-prompt.js Line 60 in f9bc817
@bcomnes does https://github.com/netlify/js-client support query params like this? |
@DavidWells any parameter listed in the operations over at https://open-api.netlify.com/#/default/listSites will work if you pass them in as an object to the call const sites = await api.listSites({
name: 'whatever',
filter: 'foo bar'
}) |
Tried that here cli/src/utils/link/link-by-prompt.js Line 60 in f9bc817
It pulls back more sites but not all if you have more than 100. Pagination params didn't seem to work |
Yeah, still need to add netlify/js-client#39 |
|
- Do you want to request a feature or report a bug?
bug
- What is the current behavior?
When running
netlify link
to connect a local repo to an existing site, you have the option to find the matching site using the current git remote url:I've tested on several private and public repos now, and the public ones consistently work, and the private ones consistently fail to find a linked repo:
- If the current behavior is a bug, please provide the steps to reproduce.
In a local clone of a private repo, run
netlify link
, and choose the default option to find the site by remote.- What is the expected behavior?
It finds the site(s) in all cases. :)
- Please mention your node.js, and operating system version.
Tried on multiple machines:
netlify-cli/2.8.0 win32-x64 node-v10.15.0
netlify-cli/2.8.0 darwin-x64 node-v10.15.0
The text was updated successfully, but these errors were encountered: