2021-02-13 12:09:37 +01:00
|
|
|
import {IsoOrRfcDateString} from '../types/iso-or-rfc-date-string';
|
|
|
|
|
|
|
|
|
|
export interface IIssuesProcessorOptions {
|
|
|
|
|
repoToken: string;
|
|
|
|
|
staleIssueMessage: string;
|
|
|
|
|
stalePrMessage: string;
|
|
|
|
|
closeIssueMessage: string;
|
|
|
|
|
closePrMessage: string;
|
|
|
|
|
daysBeforeStale: number;
|
|
|
|
|
daysBeforeIssueStale: number; // Could be NaN
|
|
|
|
|
daysBeforePrStale: number; // Could be NaN
|
|
|
|
|
daysBeforeClose: number;
|
|
|
|
|
daysBeforeIssueClose: number; // Could be NaN
|
|
|
|
|
daysBeforePrClose: number; // Could be NaN
|
|
|
|
|
staleIssueLabel: string;
|
|
|
|
|
closeIssueLabel: string;
|
|
|
|
|
exemptIssueLabels: string;
|
|
|
|
|
stalePrLabel: string;
|
|
|
|
|
closePrLabel: string;
|
|
|
|
|
exemptPrLabels: string;
|
|
|
|
|
onlyLabels: string;
|
2021-03-01 01:08:33 +01:00
|
|
|
onlyIssueLabels: string;
|
|
|
|
|
onlyPrLabels: string;
|
2021-03-01 11:05:53 -05:00
|
|
|
anyOfLabels: string;
|
2021-02-13 12:09:37 +01:00
|
|
|
operationsPerRun: number;
|
|
|
|
|
removeStaleWhenUpdated: boolean;
|
|
|
|
|
debugOnly: boolean;
|
|
|
|
|
ascending: boolean;
|
|
|
|
|
skipStaleIssueMessage: boolean;
|
|
|
|
|
skipStalePrMessage: boolean;
|
|
|
|
|
deleteBranch: boolean;
|
|
|
|
|
startDate: IsoOrRfcDateString | undefined; // Should be ISO 8601 or RFC 2822
|
|
|
|
|
exemptMilestones: string;
|
|
|
|
|
exemptIssueMilestones: string;
|
|
|
|
|
exemptPrMilestones: string;
|
2021-02-16 12:18:48 +01:00
|
|
|
exemptAllMilestones: boolean;
|
|
|
|
|
exemptAllIssueMilestones: boolean | undefined;
|
|
|
|
|
exemptAllPrMilestones: boolean | undefined;
|
2021-02-28 12:15:08 +01:00
|
|
|
exemptAssignees: string;
|
|
|
|
|
exemptIssueAssignees: string;
|
|
|
|
|
exemptPrAssignees: string;
|
|
|
|
|
exemptAllAssignees: boolean;
|
|
|
|
|
exemptAllIssueAssignees: boolean | undefined;
|
|
|
|
|
exemptAllPrAssignees: boolean | undefined;
|
2021-02-13 12:09:37 +01:00
|
|
|
}
|