code-server icon indicating copy to clipboard operation
code-server copied to clipboard

[Feat]: Open with coder/ selfhosted code-server button in readme.md files

Open bala opened this issue 3 years ago • 3 comments

What is your suggestion?

Can we have a button in github/gitlab repos - similar to open with colab or open with gitpod

Why do you want this feature?

this will enable one click access to open repos in coder/self hosted code servers

Are there any workarounds to get this functionality today?

not that i am aware of

Are you interested in submitting a PR for this?

i need some development support to implement this

bala avatar Jul 22 '22 03:07 bala

Are you asking for an image for that button that you can use in your markdown files?

jsjoeio avatar Jul 22 '22 17:07 jsjoeio

@jsjoeio can we create an option in code server which will enable the user to open any repo open in the code server in one click.

The button can be an embed placed on readme file.

The idea is to avoid using the command line git clone.

There should be an open with code server button (similar to open with gitpod) which will clone repo and open it in the currently signed in code server login.

If the repo is public then it should clone and open the corresponding folder. If its private we can use some API token to connect gthub, gitlab, bitbucket and then get the repo authenticated.

This will be a big feature to code server.

Note: gitpod has this functionality. I wish our code server has it too.

bala avatar Jul 22 '22 18:07 bala

So this is what Gitpod's looks like

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/PragatiVerma18/Snippet-Share])

rendered: Open in Gitpod

it's really nice but the problem is...code-server is self-hosted. we don't have a hosted version. We could add a query param like ?cloneRepo=coder/coder-server that you could use in your own repos?

I don't know if that would help much.

What are your thoughts?

jsjoeio avatar Jul 22 '22 18:07 jsjoeio

it makes sense that we are using self-hosted instances on different domain names.

bala avatar Aug 03 '22 20:08 bala