remix-project icon indicating copy to clipboard operation
remix-project copied to clipboard

Pull from a github folder

Open yann300 opened this issue 1 year ago • 1 comments

fix https://github.com/ethereum/remix-project/issues/4345

Some issues still remains:

  • ~~it still need a gh token otherwise it quickly reach the api rate limit.~~
  • ~~it actually add the current folder in remix. eg for https://github.com/yann300/ethereumjs-vm/tree/master/examples , it creates the examples folder.~~
  • ~~it puts everything under the code-sample workspace.~~ => not an issue as it seems

You may try by adding the url param ghfolder=https://github.com/ethereum/remix-project/tree/master/apps/remix-ide/contracts/hardhat

yann300 avatar Apr 18 '24 08:04 yann300

Deploy Preview for remixproject ready!

Name Link
Latest commit 81a04b19da30ebc508d5c4d3ad2ebaf272f5bc3e
Latest deploy log https://app.netlify.com/sites/remixproject/deploys/6695198f384f5f00084491b1
Deploy Preview https://deploy-preview-4739--remixproject.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Apr 18 '24 08:04 netlify[bot]

I passed in 2 url params for 'code-sample' (ghfolder and code) at the same time to test, and a workspace was created with the content of the github folder and also the code file that was imported, all together in the same workspace. I don't know if this was the expected behaviour, but it was interesting to see.

ioedeveloper avatar Jul 08 '24 17:07 ioedeveloper

I just tried it on Chrome and the code-sample folder was created but nothing was in it. I tried it with both this url: https://deploy-preview-4739--remixproject.netlify.app/#lang=en&ghfolder=https://github.com/pcaversaccio/snekmate/tree/main/src/snekmate/tokens and https://deploy-preview-4739--remixproject.netlify.app/#lang=en&ghfolder=ghfolder=https://github.com/ethereum/remix-project/tree/master/apps/remix-ide/contracts/hardhat

Then I tried it on Firefox and it worked. Then I tried it again on chrome and it worked. My connection is a bit slow here. A few weeks back this PR was not working at all for me. Now it is improved.

ryestew avatar Jul 15 '24 11:07 ryestew