feat: add support for ignoring files in branch diff results using regex patterns

This commit is contained in:
Martim Pimentel
2025-05-22 17:54:34 +01:00
parent c834ebc135
commit 75fd5e83e0
2 changed files with 18 additions and 2 deletions

View File

@ -633,6 +633,7 @@ export const GetBranchDiffsSchema = ProjectParamsSchema.extend({
from: z.string().describe("The base branch or commit SHA to compare from"),
to: z.string().describe("The target branch or commit SHA to compare to"),
straight: z.boolean().optional().describe("Comparison method: false for '...' (default), true for '--'"),
ignored_files_regex: z.array(z.string()).optional().describe("Regex patterns to exclude files from diff results (e.g., 'test/mocks.*', 'go\\.sum')"),
});
export const GetMergeRequestSchema = ProjectParamsSchema.extend({