-
Notifications
You must be signed in to change notification settings - Fork 11
/
action.yml
75 lines (74 loc) · 3.52 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: "'Stale Issue Cleanup' Action for GitHub Actions"
description: 'Close issues and pull requests with no recent activity'
branding:
icon: 'cloud'
color: 'orange'
inputs:
repo-token:
description: 'Token for the repository. Can be passed in using {{ secrets.GITHUB_TOKEN }}'
required: true
issue-types:
description: 'Issue types to process ("issues", "pull_requests", or "issues,pull_requests")'
default: 'issues,pull_requests'
stale-issue-message:
description: 'The message to post on the issue when tagging it. If none provided, will not mark issues stale.'
stale-pr-message:
description: 'The message to post on the pr when tagging it. If none provided, will not mark pull requests stale.'
days-before-stale:
description: 'The number of days old an issue can be before marking it stale.'
default: 60
days-before-close:
description: 'The number of days to wait to close an issue or pull request after it being marked stale.'
default: 7
stale-issue-label:
description: 'The label to apply when an issue is stale.'
default: 'Stale'
exempt-issue-labels:
description: 'The labels to apply when an issue is exempt from being marked stale. Separate multiple labels with commas (eg. "label1,label2")'
stale-pr-label:
description: 'The label to apply when a pull request is stale.'
default: 'Stale'
exempt-pr-labels:
description: 'The labels to apply when a pull request is exempt from being marked stale. Separate multiple labels with commas (eg. "label1,label2")'
ancient-issue-message:
description: 'The message to post when an issue is very old.'
ancient-pr-message:
description: 'The message to post when a pr is very old.'
days-before-ancient:
description: 'The number of days old an issue can be before marking it ancient.'
default: 360
response-requested-label:
description: 'The label that gets applied when a response is requested.'
closed-for-staleness-label:
description: 'The label that gets applied when an issue is closed for staleness.'
minimum-upvotes-to-exempt:
description: 'The minimum number of "upvotes" that an issue needs to have before not marking as ancient.'
loglevel:
description: 'Set to DEBUG to enable debug logging'
dry-run:
description: 'Set to true to not perform repository changes'
use-created-date-for-ancient:
description: 'Set to true to use issue created date instead of modified date for determining an ancient issue.'
runs:
using: 'docker'
image: 'Dockerfile'
env:
REPO_TOKEN: ${{ inputs.repo-token }}
ISSUE_TYPES: ${{ inputs.issue-types }}
ANCIENT_ISSUE_MESSAGE: ${{ inputs.ancient-issue-message }}
ANCIENT_PR_MESSAGE: ${{ inputs.ancient-pr-message }}
STALE_ISSUE_MESSAGE: ${{ inputs.stale-issue-message }}
STALE_PR_MESSAGE: ${{ inputs.stale-pr-message }}
DAYS_BEFORE_STALE: ${{ inputs.days-before-stale }}
DAYS_BEFORE_CLOSE: ${{ inputs.days-before-close }}
DAYS_BEFORE_ANCIENT: ${{ inputs.days-before-ancient }}
STALE_ISSUE_LABEL: ${{ inputs.stale-issue-label }}
EXEMPT_ISSUE_LABELS: ${{ inputs.exempt-issue-labels }}
STALE_PR_LABEL: ${{ inputs.stale-pr-label }}
EXEMPT_PR_LABELS: ${{ inputs.exempt-pr-labels }}
RESPONSE_REQUESTED_LABEL: ${{ inputs.response-requested-label }}
CFS_LABEL: ${{ inputs.closed-for-staleness-label }}
MINIMUM_UPVOTES_TO_EXEMPT: ${{ inputs.minimum-upvotes-to-exempt }}
LOGLEVEL: ${{ inputs.loglevel }}
DRYRUN: ${{ inputs.dry-run }}
USE_CREATED_DATE_FOR_ANCIENT: ${{ inputs.use-created-date-for-ancient }}