MCPcopy Create free account

hub / github.com/Evobaso-J/ai-gitlab-code-review / functions

Functions15 in github.com/Evobaso-J/ai-gitlab-code-review

↓ 2 callersFunctionbuildPrompt
({ changes, oldFiles }: BuildPromptParameters)
src/prompt/index.ts:29
↓ 1 callersFunctionbuild
(t: TestContext)
test/helper.ts:22
↓ 1 callersFunctionbuildAnswer
(completion: ChatCompletion | Error | undefined)
src/prompt/index.ts:50
↓ 1 callersFunctionbuildCommentPayload
(answer: string, eventType: T['object_kind'])
src/routes/gitlab-webhook/hookHandlers.ts:56
↓ 1 callersFunctionconfig
()
test/helper.ts:17
↓ 1 callersFunctionfetchBranchDiff
({ gitLabBaseUrl, headers, targetBranch, sourceBranch })
src/routes/gitlab-webhook/services.ts:19
↓ 1 callersFunctionfetchPreEditFiles
({ gitLabBaseUrl, headers, changesOldPaths })
src/routes/gitlab-webhook/services.ts:53
↓ 1 callersFunctiongenerateAICompletion
(messages: ChatCompletionMessageParam[], openaiInstance: OpenAI, aiModel: ChatModel)
src/routes/gitlab-webhook/services.ts:94
↓ 1 callersFunctionhandleMergeRequestHook
(mergeRequestEvent: WebhookMergeRequestEventSchema, { gitlabUrl, headers })
src/routes/gitlab-webhook/hookHandlers.ts:10
↓ 1 callersFunctionpostAIComment
({ gitLabBaseUrl, headers, mergeRequestIid }, commentPayload: CommentPayload)
src/routes/gitlab-webhook/services.ts:124
↓ 1 callersFunctionpostAIReview
(fastify)
src/routes/gitlab-webhook/postAIReview.ts:9
Functionapp
( fastify, opts )
src/app.ts:20
Methodconstructor
({ name, message, cause, statusCode = 500 }: { name: T message: string cause?: a
src/config/errors.ts:7
FunctiongitlabWebhook
(fastify, opts)
src/routes/gitlab-webhook/index.ts:24
Functionroot
(fastify, _opts)
src/routes/root.ts:3