xodio / xod

XOD IDE
https://xod.io
GNU Affero General Public License v3.0
896 stars 119 forks source link

Support `main` branch when fetching Arduino libraries from GitHub #2065

Open evgenykochetkov opened 4 years ago

evgenykochetkov commented 4 years ago

When creating a new repository, GitHub suggests calling the default branch main instead of master, and some existing repositories are migrating. We should support both when fetching libraries using #pragma XOD require "link_to_library".

Right now, we have master hardcoded in https://github.com/xodio/xod/blob/a7d88dde07e6a4f072a6e4e2d8b7071cd002f0dc/packages/xod-deploy/src/libraryManager.js#L22-L26