Skip to content

Commit 4971eb1

Browse files
author
iwakitakuma
committed
FEAT: issue type on update list create issue
issue: #188
1 parent 15d330c commit 4971eb1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

schemas.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,7 @@ export const GitLabIssueSchema = z.object({
678678
due_date: z.string().nullable().optional(),
679679
discussion_locked: flexibleBooleanNullable.optional(),
680680
weight: z.number().nullable().optional(),
681+
issue_type: z.string().describe("the type of issue.").nullish(),
681682
});
682683

683684
// NEW SCHEMA: For issue with link details (used in listing issue links)
@@ -1013,6 +1014,7 @@ export const CreateIssueSchema = ProjectParamsSchema.extend({
10131014
assignee_ids: z.array(z.number()).optional().describe("Array of user IDs to assign"),
10141015
labels: z.array(z.string()).optional().describe("Array of label names"),
10151016
milestone_id: z.coerce.string().optional().describe("Milestone ID to assign"),
1017+
issue_type: z.enum(["issue", "incident", "test_case", "task"]).describe("the type of issue. One of issue, incident, test_case or task.").nullish().default("issue"),
10161018
});
10171019

10181020
const MergeRequestOptionsSchema = {
@@ -1269,6 +1271,8 @@ export const UpdateIssueSchema = z.object({
12691271
milestone_id: z.coerce.string().optional().describe("Milestone ID to assign"),
12701272
state_event: z.enum(["close", "reopen"]).optional().describe("Update issue state (close/reopen)"),
12711273
weight: z.number().optional().describe("Weight of the issue (0-9)"),
1274+
issue_type: z.enum(["issue", "incident", "test_case", "task"]).describe("the type of issue. One of issue, incident, test_case or task."),
1275+
12721276
});
12731277

12741278
export const DeleteIssueSchema = z.object({

0 commit comments

Comments
 (0)