MCPcopy Create free account
hub / github.com/probot/probot / load

Method load

src/server/server.ts:157–166  ·  view source on GitHub ↗
(appFn: ApplicationFunction)

Source from the content-addressed store, hash-verified

155 }
156
157 public async load(appFn: ApplicationFunction) {
158 await this.#initialize();
159
160 await appFn(this.#state.probot!, {
161 cwd: this.#state.cwd,
162 addHandler: (handler: Handler) => {
163 this.addHandler(handler as unknown as Handler);
164 },
165 });
166 }
167
168 public async start(): Promise<HttpServer> {
169 await this.#initialize();

Callers

nothing calls this directly

Calls 3

#initializeMethod · 0.95
addHandlerMethod · 0.95
appFnFunction · 0.50

Tested by

no test coverage detected