MCPcopy Index your code
hub / github.com/probot/probot / loadHandlerFactory

Method loadHandlerFactory

src/server/server.ts:144–155  ·  view source on GitHub ↗
(appFn: HandlerFactory)

Source from the content-addressed store, hash-verified

142 }
143
144 public async loadHandlerFactory(appFn: HandlerFactory) {
145 await this.#initialize();
146
147 const handler = await appFn(this.#state.probot!, {
148 cwd: this.#state.cwd,
149 addHandler: (handler: Handler) => {
150 this.addHandler(handler as unknown as Handler);
151 },
152 });
153
154 this.addHandler(handler);
155 }
156
157 public async load(appFn: ApplicationFunction) {
158 await this.#initialize();

Callers 3

instantiateServerFunction · 0.95
setup.test.tsFile · 0.80
runFunction · 0.80

Calls 3

#initializeMethod · 0.95
addHandlerMethod · 0.95
appFnFunction · 0.50

Tested by 1

instantiateServerFunction · 0.76