Skip to content

rfc: make consumable as library #210

Open

Description

@cdaringe

Problem

I have a probot application, and want to tap into this functionality. However, this code is not distributed on npm.

Discussion

Can we:

  • publish to npm
  • export mappings between event-name:handler

in this regard, I can import pull and bind them to my existing event handlers

Activity

  1. MaxDesiatov commented on Jun 10, 2020

    @MaxDesiatov

    Likewise, I wish there was a hosted version, maybe based on GitHub Actions?

  2. wei commented on Aug 19, 2020

    @wei
    Owner

    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!

  3. cdaringe commented on Aug 19, 2020

    @cdaringe
    Author

    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.

  4. Repository owner deleted a comment from on Sep 11, 2020
  5. Repository owner deleted a comment from on Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions