Skip to content

Commit 537838c

Browse files
author
Gavin Williams
committed
Add type annotation
1 parent cd9fda5 commit 537838c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/web/src/app/api/(server)/webhook

packages/web/src/app/api/(server)/webhook/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { env } from "@sourcebot/shared";
88
import { processGitHubPullRequest, processGitLabMergeRequest } from "@/features/agents/review-agent/app";
99
import { throttling, type ThrottlingOptions } from "@octokit/plugin-throttling";
1010
import fs from "fs";
11-
import { GitHubPullRequest, gitLabMergeRequestPayloadSchema, gitLabNotePayloadSchema } from "@/features/agents/review-agent/types";
11+
import { GitHubPullRequest, GitLabMergeRequestPayload, gitLabMergeRequestPayloadSchema, gitLabNotePayloadSchema } from "@/features/agents/review-agent/types";
1212
import { createLogger } from "@sourcebot/shared";
1313

1414
const logger = createLogger('webhook');
@@ -246,7 +246,7 @@ export const POST = async (request: NextRequest) => {
246246
if (noteBody === `/${env.REVIEW_AGENT_REVIEW_COMMAND}`) {
247247
logger.info('Review agent review command received on GitLab MR, processing');
248248

249-
const mrPayload = {
249+
const mrPayload: GitLabMergeRequestPayload = {
250250
object_kind: "merge_request",
251251
object_attributes: {
252252
iid: parsed.data.merge_request.iid,

0 commit comments

Comments
 (0)