mirror of
https://github.com/peakoss/anti-slop
synced 2026-12-01 13:39:13 +08:00
feat(inputs): add all inputs to the settings type
This commit is contained in:
1 file changed
+86
@@ -1,4 +1,90 @@
|
|||||||
export interface Settings {
|
export interface Settings {
|
||||||
// Repo Auth Token
|
// Repo Auth Token
|
||||||
githubToken: string;
|
githubToken: string;
|
||||||
|
|
||||||
|
// General Settings
|
||||||
|
maxFailures: number;
|
||||||
|
actionsStepDebug: boolean;
|
||||||
|
|
||||||
|
// PR Branch Checks
|
||||||
|
allowedTargetBranches: string[];
|
||||||
|
blockedTargetBranches: string[];
|
||||||
|
allowedSourceBranches: string[];
|
||||||
|
blockedSourceBranches: string[];
|
||||||
|
|
||||||
|
// PR Title Checks
|
||||||
|
requireConventionalTitle: boolean;
|
||||||
|
|
||||||
|
// PR Description Checks
|
||||||
|
requireDescription: boolean;
|
||||||
|
maxDescriptionLength: number;
|
||||||
|
maxEmojiCount: number;
|
||||||
|
requirePrTemplate: boolean;
|
||||||
|
requireLinkedIssue: boolean;
|
||||||
|
blockedKeywords: string[];
|
||||||
|
blockedIssueNumbers: string[];
|
||||||
|
|
||||||
|
// Commit Message Checks
|
||||||
|
requireConventionalCommits: boolean;
|
||||||
|
blockedCommitAuthors: string[];
|
||||||
|
|
||||||
|
// File Checks
|
||||||
|
allowedFileExtensions: string[];
|
||||||
|
allowedPaths: string[];
|
||||||
|
blockedPaths: string[];
|
||||||
|
requireFinalNewline: boolean;
|
||||||
|
allowedLineEnding: string;
|
||||||
|
|
||||||
|
// User Health Checks
|
||||||
|
minRepoMergedPrs: number;
|
||||||
|
minRepoMergeRatio: number;
|
||||||
|
minGlobalMergeRatio: number;
|
||||||
|
minAccountAge: number;
|
||||||
|
|
||||||
|
// Filters
|
||||||
|
// onlyIssueTypes: string[];
|
||||||
|
// onlyLabels: string[];
|
||||||
|
// onlyPrLabels: string[];
|
||||||
|
// onlyIssueLabels: string[];
|
||||||
|
// anyOfLabels: string[];
|
||||||
|
// anyOfPrLabels: string[];
|
||||||
|
// anyOfIssueLabels: string[];
|
||||||
|
|
||||||
|
// Exemptions
|
||||||
|
exemptAuthorAssociation: string[];
|
||||||
|
// exemptTeams: string[];
|
||||||
|
exemptUsers: string[];
|
||||||
|
exemptBots: string[];
|
||||||
|
exemptDraftPrs: boolean;
|
||||||
|
exemptLabel: string;
|
||||||
|
exemptPrLabel: string;
|
||||||
|
// exemptIssueLabel: string;
|
||||||
|
// exemptMilestones: string[];
|
||||||
|
// exemptPrMilestones: string[];
|
||||||
|
// exemptIssueMilestones: string[];
|
||||||
|
// exemptAllMilestones: boolean;
|
||||||
|
// exemptAllPrMilestones: boolean;
|
||||||
|
// exemptAllIssueMilestones: boolean;
|
||||||
|
|
||||||
|
// PR Close Actions
|
||||||
|
closePr: boolean;
|
||||||
|
lockPr: boolean;
|
||||||
|
deleteBranch: boolean;
|
||||||
|
|
||||||
|
// PR Failure Actions
|
||||||
|
failurePrMessage: string;
|
||||||
|
failureRemovePrLabels: string[];
|
||||||
|
failureRemoveAllPrLabels: boolean;
|
||||||
|
failureAddPrLabels: string[];
|
||||||
|
|
||||||
|
// Issue Close Actions
|
||||||
|
// closeIssue: boolean;
|
||||||
|
// closeIssueReason: string;
|
||||||
|
// lockIssue: boolean;
|
||||||
|
|
||||||
|
// Issue Failure Actions
|
||||||
|
// failureIssueMessage: string;
|
||||||
|
// failureRemoveIssueLabels: string[];
|
||||||
|
// failureRemoveAllIssueLabels: boolean;
|
||||||
|
// failureAddIssueLabels: string[];
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user