Skip to content

Commit 13b324e

Browse files
authored
Add support for adding close label (#135)
1 parent 23eab29 commit 13b324e

File tree

5 files changed

+4365
-4321
lines changed

5 files changed

+4365
-4321
lines changed

__tests__/main.test.ts

+2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ const DefaultProcessorOptions: IssueProcessorOptions = Object.freeze({
4040
daysBeforeStale: 1,
4141
daysBeforeClose: 30,
4242
staleIssueLabel: 'Stale',
43+
closeIssueLabel: '',
4344
exemptIssueLabels: '',
4445
stalePrLabel: 'Stale',
46+
closePrLabel: '',
4547
exemptPrLabels: '',
4648
onlyLabels: '',
4749
operationsPerRun: 100,

action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ inputs:
2222
stale-issue-label:
2323
description: 'The label to apply when an issue is stale.'
2424
default: 'Stale'
25+
close-issue-label:
26+
description: 'The label to apply when an issue is closed.'
2527
exempt-issue-labels:
2628
description: 'The labels to apply when an issue is exempt from being marked stale. Separate multiple labels with commas (eg. "label1,label2")'
2729
default: ''
2830
stale-pr-label:
2931
description: 'The label to apply when a pull request is stale.'
3032
default: 'Stale'
33+
close-pr-label:
34+
description: 'The label to apply when a pull request is closed.'
3135
exempt-pr-labels:
3236
description: 'The labels to apply when a pull request is exempt from being marked stale. Separate multiple labels with commas (eg. "label1,label2")'
3337
default: ''

0 commit comments

Comments
 (0)