Skip to content

How to extend the application basic functions? #909

@frank-zsy

Description

@frank-zsy

When I try to use Probot to build a quite complex GitHub app, I encounter a problem with extending application.

The default application for Probot only provides several basic services for customize logics, like on, receive, route. And the ApplicationFunc takes an Application as parameter which is built in load function of Probot.

So:

  1. I don't quite understand why create a new Application instance for every component? It seems quite same for me.
  2. How can I extend Application for my own needs, like mail service, IM push service, crond service and so on? Now I can customize my logic base on the functions already provided but I can't add new functions to the Application as the apps field is private and the construction process is private too in Probot.

Can somebody help me with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions