remix-project
remix-project copied to clipboard
Pull from a github folder
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
examplesfolder.~~ - ~~it puts everything under the
code-sampleworkspace.~~ => 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
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...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
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.
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.