-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDK improvements #138
Comments
It is shipped with the SDK?
I guess we could check if the code is running in Github Actions by the env
The Action plugin doesn't serve the manifest though, the kernel gets it through GIthub API
|
@whilefoo I might have been confused with the
yes that might work I'll have a look at it if I have some time.
Good point, maybe it would be more interesting to pass the manifest within
Thanks! Also I seem to run into trouble when I try to start Action plugins with the signature. I am using the same kernel for an Action and a Worker, the Worker signature works fine whereas the Action throws an |
The SDK could get some improvements to make it more friendly to use
"hono"
doesn't seem to be shipped with it but is required to serve the plugin, so it might be included, or even better, encapsulated within the SDK.createPlugin
andcreateActionPlugin
. Maybe we could have onlycreatePlugin
, that would change behavior depending on either the runtime or the environment (e.g. running on a Worker / Action). What would be great that the user doesn't have to worry about this, and locally a GitHub plugin would run as a server, this way it would be easy to debug locally.Manifest
type is not exported. The main issue is that when a JSON is imported directly throughimport
, the type ofubiquity:listeners
is astring[]
and is incompatible withManifest
.createActionPlugin
(might be solved if we merge both function).postComment
methos to make sure we have metadata on the commentspostComment
The text was updated successfully, but these errors were encountered: