Compare commits
1 Commits
feat/74-1
...
fix/get_is
Author | SHA1 | Date | |
---|---|---|---|
66d53f508c |
7
index.ts
7
index.ts
@ -907,15 +907,14 @@ async function listIssues(
|
|||||||
// Add all query parameters
|
// Add all query parameters
|
||||||
Object.entries(options).forEach(([key, value]) => {
|
Object.entries(options).forEach(([key, value]) => {
|
||||||
if (value !== undefined) {
|
if (value !== undefined) {
|
||||||
const keys = ["labels", "assignee_username"];
|
if (key === "labels" ) {
|
||||||
if ( keys.includes(key)) {
|
|
||||||
if (Array.isArray(value)) {
|
if (Array.isArray(value)) {
|
||||||
// Handle array of labels
|
// Handle array of labels
|
||||||
value.forEach(label => {
|
value.forEach(label => {
|
||||||
url.searchParams.append(`${key}[]`, label.toString());
|
url.searchParams.append("labels[]", label.toString());
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
url.searchParams.append(`${key}[]`, value.toString());
|
url.searchParams.append("labels[]", value.toString());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
url.searchParams.append(key, value.toString());
|
url.searchParams.append(key, value.toString());
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@zereight/mcp-gitlab",
|
"name": "@zereight/mcp-gitlab",
|
||||||
"version": "1.0.59",
|
"version": "1.0.58",
|
||||||
"description": "MCP server for using the GitLab API",
|
"description": "MCP server for using the GitLab API",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "zereight",
|
"author": "zereight",
|
||||||
|
@ -212,7 +212,7 @@ export const GitLabUsersResponseSchema = z.record(
|
|||||||
id: z.number(),
|
id: z.number(),
|
||||||
username: z.string(),
|
username: z.string(),
|
||||||
name: z.string(),
|
name: z.string(),
|
||||||
avatar_url: z.string().nullable(),
|
avatar_url: z.string(),
|
||||||
web_url: z.string(),
|
web_url: z.string(),
|
||||||
}).nullable()
|
}).nullable()
|
||||||
);
|
);
|
||||||
@ -253,7 +253,7 @@ export const GitLabNamespaceExistsResponseSchema = z.object({
|
|||||||
export const GitLabOwnerSchema = z.object({
|
export const GitLabOwnerSchema = z.object({
|
||||||
username: z.string(), // Changed from login to match GitLab API
|
username: z.string(), // Changed from login to match GitLab API
|
||||||
id: z.number(),
|
id: z.number(),
|
||||||
avatar_url: z.string().nullable(),
|
avatar_url: z.string(),
|
||||||
web_url: z.string(), // Changed from html_url to match GitLab API
|
web_url: z.string(), // Changed from html_url to match GitLab API
|
||||||
name: z.string(), // Added as GitLab includes full name
|
name: z.string(), // Added as GitLab includes full name
|
||||||
state: z.string(), // Added as GitLab includes user state
|
state: z.string(), // Added as GitLab includes user state
|
||||||
@ -593,7 +593,7 @@ export const GitLabForkParentSchema = z.object({
|
|||||||
.object({
|
.object({
|
||||||
username: z.string(), // Changed from login to match GitLab API
|
username: z.string(), // Changed from login to match GitLab API
|
||||||
id: z.number(),
|
id: z.number(),
|
||||||
avatar_url: z.string().nullable(),
|
avatar_url: z.string(),
|
||||||
})
|
})
|
||||||
.optional(), // Made optional to handle cases where GitLab API doesn't include it
|
.optional(), // Made optional to handle cases where GitLab API doesn't include it
|
||||||
web_url: z.string(), // Changed from html_url to match GitLab API
|
web_url: z.string(), // Changed from html_url to match GitLab API
|
||||||
|
Reference in New Issue
Block a user