You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We run an internal GHE instance and would like to benefit from skpm's publishing workflow and baked-in auto-updating. Currently, skpm publish doesn't support GHE, in fact a lot of places in the code make the assumption. GHE supports the GitHub REST API, so afaict it should be possible to support internal plugin publication using skpm relatively easily.
We're happy to work on the implementation of this if you'd accept such a patch.
Current state
When running skpm publish minor --repo-url=https://<GHE-HOSTNAME>/user/repo.git the output is ✖ ERROR Error: Missing "repository" field in the package.json. which is pretty unhelpful. Same result if a non-github-dot-com repository field exists in package.json.
Proposed changes
Here's what a path to GHE support might look like:
be clearer in help & docs when skpm assumes a public GitHub repo / github.com URL and when it can be any instance. "GitHub repo" is ambiguous for GHE users and suggest an internal instance could work
improve error message for skpm publish when used /w non github.com URL
introduce a central concept of a "GitHub host" somewhere, use that to build the various GitHub API URLs across the codebase
support arbitrary repository URLs, assume it's a GHE instance when it doesn't
detect when a --repo-url is not on GitHub.com and automatically enable --skip-registry
fail gracefully if a repository URL happens to not point to any GitHub instance
The text was updated successfully, but these errors were encountered:
gerrit
added a commit
to gerrit/skpm
that referenced
this issue
Jul 30, 2018
Happy to accept patches, I do realise that publishing for non-GH repos sucks!
That being said, I'm working (at a Sketch employee) on introducing a plugin registry (a bit like npm) where we will store the different plugin versions so all of the publishing on GitHub hack that we have now will disappear.
No, Sketch needs to be able to access them. Otherwise it would mean building a GHE authentication inside Sketch and I don’t think that’s something we will ever do
We run an internal GHE instance and would like to benefit from
skpm
's publishing workflow and baked-in auto-updating. Currently,skpm publish
doesn't support GHE, in fact a lot of places in the code make the assumption. GHE supports the GitHub REST API, so afaict it should be possible to support internal plugin publication usingskpm
relatively easily.We're happy to work on the implementation of this if you'd accept such a patch.
Current state
When running
skpm publish minor --repo-url=https://<GHE-HOSTNAME>/user/repo.git
the output is✖ ERROR Error: Missing "repository" field in the package.json.
which is pretty unhelpful. Same result if a non-github-dot-com repository field exists inpackage.json
.Proposed changes
Here's what a path to GHE support might look like:
github.com
URL and when it can be any instance. "GitHub repo" is ambiguous for GHE users and suggest an internal instance could workskpm publish
when used /w non github.com URL--repo-url
is not on GitHub.com and automatically enable--skip-registry
The text was updated successfully, but these errors were encountered: