-
-
Notifications
You must be signed in to change notification settings - Fork 663
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
rfc: make consumable as library #210
Comments
Likewise, I wish there was a hosted version, maybe based on GitHub Actions? |
Great idea, I'll definitely consider it for a future release! @cdaringe Do you have an example package on npm that provides event handler bindings for us to model after? @MaxDesiatov Probot v11 has serverless deployments on its roadmap including GitHub Actions support. I'm looking forward to it! |
Sure! https://github.com/cdaringe/semantic-pull-requests/blob/feat/publish/index.js semantic exports a single function that takes the app and registers handlers. That's a great start! I'd advocate for finer grain control as well, just exporting the handler and letting us call into the handler. Maybe also export the default events that would be bound to it. |
Problem
I have a probot application, and want to tap into this functionality. However, this code is not distributed on npm.
Discussion
Can we:
npm
in this regard, I can import
pull
and bind them to my existing event handlersThe text was updated successfully, but these errors were encountered: