GithubHelp home page GithubHelp logo

Comments (6)

shanman190 avatar shanman190 commented on July 20, 2024 1

source was the parameter that I found to put the URL in that would result in the repository being passed in.

from devpod.

martinbiard avatar martinbiard commented on July 20, 2024 1

@pascalbreuninger

You're right, it's working. I took your urls and carefully recreated mine and both worked. I'm working on a private repo so I can't share exact links but those are the formats that worked:

devpod://[email protected]:my-org/my-repo.git&workspace=my-workspace&provider=docker&ide=vscode
https://devpod.sh/open#[email protected]:my-org/my-repo.git&workspace=my-workspace&provider=docker&ide=vscode

I'm not yet using the prebuild feature, but is there a parameter to pass this value into the urls as well?

Another thing I noticed, is that prefilling the workspace input with the above urls works as long as devpod is already running. When devpod is not running, then the links will open devpod to the workspaces list section in the app, but not to the prefilled create workspace page.

from devpod.

pascalbreuninger avatar pascalbreuninger commented on July 20, 2024 1

@martinbiard

I'm not yet using the prebuild feature, but is there a parameter to pass this value into the urls as well?

Not a URL parameter but it's available as a customization in the devcontainer.json

"customizations": {
  "devpod": {
      "prebuildRepository": "ghcr.io/my-org/my-repo"
  }
}

from devpod.

pascalbreuninger avatar pascalbreuninger commented on July 20, 2024

Hey @martinbiard, thanks for opening the issue.
The current format for deeplinks is documented here, the only difference when relaying through devpod.sh/open is that you can omit the source parameter name. The rest works the same.
The deeplink
devpod://open?source=your-url-encoded-source&workspace=my-workspace&provider=docker&ide=vscode
becomes
https://devpod.sh/open#your-url-encoded-source&workspace=my-workspace&provider=docker&ide=vscode

Another neat trick is to just omit the source for github based repos, devpod.sh figures it out via the referrer header

As for the popup, that looks weird indeed, I'm wondering what windows is up to this time πŸ™ƒ it's not reproducible on linux or macOS for me

from devpod.

martinbiard avatar martinbiard commented on July 20, 2024

Thanks @pascalbreuninger

Yes, those are the links I tried, but I have these issues:

  • The devpod:// url scheme does not work at all, I can paste it in chrome and chrome asks if I want to open it with devpod but if I accept, it never makes it to the devpod app (not sure how to debug this further).
  • The https url scheme going through the devpod.sh website works better, it will actually bring up devpod and prefill the source with my github repo url. However, as mentioned in my original post, it won't prefill anything else even though I'm passing them as parameters (workspace, provider, ide).

from devpod.

pascalbreuninger avatar pascalbreuninger commented on July 20, 2024

@martinbiard I can't repro this on macOS, maybe it's a windows issue - we'll look into it.
Could you paste the updated url you're trying it with here please?

from devpod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.