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