2021-02-16 19:18:48 +08:00
|
|
|
import {IIssuesProcessorOptions} from '../../src/interfaces/issues-processor-options';
|
|
|
|
|
2022-09-21 02:01:22 +08:00
|
|
|
// Default options for use in tests.
|
|
|
|
// Mirrors the defaults defined in action.yml
|
2021-02-16 19:18:48 +08:00
|
|
|
export const DefaultProcessorOptions: IIssuesProcessorOptions = Object.freeze({
|
|
|
|
repoToken: 'none',
|
|
|
|
staleIssueMessage: 'This issue is stale',
|
|
|
|
stalePrMessage: 'This PR is stale',
|
|
|
|
closeIssueMessage: 'This issue is being closed',
|
|
|
|
closePrMessage: 'This PR is being closed',
|
2021-10-20 21:25:24 +08:00
|
|
|
daysBeforeStale: 1,
|
|
|
|
daysBeforeIssueStale: NaN,
|
|
|
|
daysBeforePrStale: NaN,
|
|
|
|
daysBeforeClose: 30,
|
|
|
|
daysBeforeIssueClose: NaN,
|
|
|
|
daysBeforePrClose: NaN,
|
2021-02-16 19:18:48 +08:00
|
|
|
staleIssueLabel: 'Stale',
|
|
|
|
closeIssueLabel: '',
|
|
|
|
exemptIssueLabels: '',
|
|
|
|
stalePrLabel: 'Stale',
|
|
|
|
closePrLabel: '',
|
|
|
|
exemptPrLabels: '',
|
|
|
|
onlyLabels: '',
|
2021-03-01 08:08:33 +08:00
|
|
|
onlyIssueLabels: '',
|
|
|
|
onlyPrLabels: '',
|
2021-03-02 00:05:53 +08:00
|
|
|
anyOfLabels: '',
|
2021-04-29 04:33:42 +08:00
|
|
|
anyOfIssueLabels: '',
|
|
|
|
anyOfPrLabels: '',
|
2021-02-16 19:18:48 +08:00
|
|
|
operationsPerRun: 100,
|
2021-06-10 22:14:45 +08:00
|
|
|
debugOnly: true,
|
2021-10-20 21:25:24 +08:00
|
|
|
removeStaleWhenUpdated: false,
|
|
|
|
removeIssueStaleWhenUpdated: undefined,
|
|
|
|
removePrStaleWhenUpdated: undefined,
|
2021-02-16 19:18:48 +08:00
|
|
|
ascending: false,
|
|
|
|
deleteBranch: false,
|
|
|
|
startDate: '',
|
2021-10-20 21:25:24 +08:00
|
|
|
exemptMilestones: '',
|
2021-02-16 19:18:48 +08:00
|
|
|
exemptIssueMilestones: '',
|
|
|
|
exemptPrMilestones: '',
|
2021-10-20 21:25:24 +08:00
|
|
|
exemptAllMilestones: false,
|
|
|
|
exemptAllIssueMilestones: undefined,
|
|
|
|
exemptAllPrMilestones: undefined,
|
2021-02-28 19:15:08 +08:00
|
|
|
exemptAssignees: '',
|
|
|
|
exemptIssueAssignees: '',
|
|
|
|
exemptPrAssignees: '',
|
2021-10-20 21:25:24 +08:00
|
|
|
exemptAllAssignees: false,
|
|
|
|
exemptAllIssueAssignees: undefined,
|
|
|
|
exemptAllPrAssignees: undefined,
|
2021-06-08 21:31:20 +08:00
|
|
|
enableStatistics: true,
|
2023-03-21 21:11:19 +08:00
|
|
|
labelsToRemoveWhenStale: '',
|
2021-06-08 21:31:20 +08:00
|
|
|
labelsToRemoveWhenUnstale: '',
|
2021-09-17 21:54:38 +08:00
|
|
|
labelsToAddWhenUnstale: '',
|
2021-10-20 21:25:24 +08:00
|
|
|
ignoreUpdates: false,
|
|
|
|
ignoreIssueUpdates: undefined,
|
|
|
|
ignorePrUpdates: undefined,
|
2022-06-24 05:43:36 +08:00
|
|
|
exemptDraftPr: false,
|
2022-09-21 02:01:22 +08:00
|
|
|
closeIssueReason: 'not_planned',
|
2022-09-12 19:20:57 +08:00
|
|
|
includeOnlyAssigned: false
|
2021-02-16 19:18:48 +08:00
|
|
|
});
|