UNPKG

@issue-linker/core

Version:
27 lines 1.13 kB
import type { CheckMode, IssueStatusFilter } from "../domain/validation-schemas.js"; /** * Validates if a branch should be excluded from validation * @param branch - The branch name to check * @param pattern - Glob pattern for exclusion * @returns true if branch should be excluded */ export declare function isBranchExcluded(branch: string, pattern: string): boolean; /** * Check if text should be excluded based on mode and pattern * @param text - The text to check * @param checkMode - The check mode * @param customExclude - Optional custom exclude pattern * @returns Object with exclusion status and the pattern used */ export declare function shouldExclude(text: string, checkMode: CheckMode, customExclude?: string): { excluded: boolean; pattern?: string; }; /** * Validates if an issue state is allowed * @param state - The issue state to check * @param filter - Issue state filter ("all", "open", or "closed") * @returns true if state is allowed */ export declare function isIssueStateAllowed(state: string, filter: IssueStatusFilter): boolean; //# sourceMappingURL=validation-matcher.d.ts.map