2019-08-04 09:34:59 +08:00
name : 'Close Stale Issues'
2019-11-09 00:47:32 +08:00
description : 'Close issues and pull requests with no recent activity'
2019-08-04 09:34:59 +08:00
author : 'GitHub'
inputs :
2019-08-07 04:25:08 +08:00
repo-token :
2020-04-14 17:43:56 +08:00
description : 'Token for the repository. Can be passed in using `{{ secrets.GITHUB_TOKEN }}`.'
2021-01-18 09:22:36 +08:00
required : false
2021-01-15 20:07:08 +08:00
default : ${{ github.token }}
2019-08-07 04:25:08 +08:00
stale-issue-message :
2019-08-20 02:34:16 +08:00
description : 'The message to post on the issue when tagging it. If none provided, will not mark issues stale.'
2021-01-16 21:28:29 +08:00
required : false
2019-08-07 04:25:08 +08:00
stale-pr-message :
2021-02-16 19:18:48 +08:00
description : 'The message to post on the pull request when tagging it. If none provided, will not mark pull requests stale.'
2021-01-16 21:28:29 +08:00
required : false
2020-07-14 01:05:59 +08:00
close-issue-message :
description : 'The message to post on the issue when closing it. If none provided, will not comment when closing an issue.'
2021-01-16 21:28:29 +08:00
required : false
2020-07-14 01:05:59 +08:00
close-pr-message :
2021-02-16 19:18:48 +08:00
description : 'The message to post on the pull request when closing it. If none provided, will not comment when closing a pull requests.'
2021-01-16 21:28:29 +08:00
required : false
2019-08-07 04:25:08 +08:00
days-before-stale :
2021-01-16 21:28:29 +08:00
description : 'The number of days old an issue or a pull request can be before marking it stale. Set to -1 to never mark issues or pull requests as stale automatically.'
required : false
default : '60'
days-before-issue-stale :
2021-01-19 18:54:16 +08:00
description : 'The number of days old an issue can be before marking it stale. Set to -1 to never mark issues as stale automatically. Override "days-before-stale" option regarding only the issues.'
2021-01-16 21:28:29 +08:00
required : false
days-before-pr-stale :
2021-01-19 18:54:16 +08:00
description : 'The number of days old a pull request can be before marking it stale. Set to -1 to never mark pull requests as stale automatically. Override "days-before-stale" option regarding only the pull requests.'
2021-01-16 21:28:29 +08:00
required : false
days-before-issue-close :
2021-10-09 02:39:44 +08:00
description : 'The number of days to wait to close an issue after it being marked stale. Set to -1 to never close stale issues or pull requests.'
default : '7'
2021-01-16 21:28:29 +08:00
required : false
days-before-pr-close :
2021-10-09 02:39:44 +08:00
description : 'The number of days to wait to close a pull request after it being marked stale. Set to -1 to never close stale issues or pull requests.'
default : '7'
2021-01-16 21:28:29 +08:00
required : false
2019-08-07 04:25:08 +08:00
stale-issue-label :
2020-04-14 17:43:56 +08:00
description : 'The label to apply when an issue is stale.'
2021-01-16 21:28:29 +08:00
required : false
2019-08-07 04:25:08 +08:00
default : 'Stale'
2020-09-09 03:32:42 +08:00
close-issue-label :
description : 'The label to apply when an issue is closed.'
2021-01-16 21:28:29 +08:00
required : false
2020-04-16 09:33:09 +08:00
exempt-issue-labels :
2021-03-04 19:38:05 +08:00
description : 'The labels that mean an issue is exempt from being marked stale. Separate multiple labels with commas (eg. "label1,label2").'
2020-04-16 09:33:09 +08:00
default : ''
2021-01-16 21:28:29 +08:00
required : false
2019-08-07 04:25:08 +08:00
stale-pr-label :
2020-04-14 17:43:56 +08:00
description : 'The label to apply when a pull request is stale.'
2019-08-07 04:25:08 +08:00
default : 'Stale'
2021-01-16 21:28:29 +08:00
required : false
2020-09-09 03:32:42 +08:00
close-pr-label :
description : 'The label to apply when a pull request is closed.'
2021-01-16 21:28:29 +08:00
required : false
2020-04-16 09:33:09 +08:00
exempt-pr-labels :
2021-03-04 19:38:05 +08:00
description : 'The labels that mean a pull request is exempt from being marked as stale. Separate multiple labels with commas (eg. "label1,label2").'
2020-04-16 09:33:09 +08:00
default : ''
2021-01-16 21:28:29 +08:00
required : false
2021-01-19 18:54:16 +08:00
exempt-issue-milestones :
2021-10-09 01:48:38 +08:00
description : 'The milestones that mean an issue is exempt from being marked as stale. Separate multiple milestones with commas (eg. "milestone1,milestone2").'
2021-01-19 18:54:16 +08:00
default : ''
required : false
exempt-pr-milestones :
2021-10-09 01:48:38 +08:00
description : 'The milestones that mean a pull request is exempt from being marked as stale. Separate multiple milestones with commas (eg. "milestone1,milestone2").'
2021-02-16 19:18:48 +08:00
default : ''
required : false
exempt-all-issue-milestones :
2021-10-09 01:19:07 +08:00
description : 'Exempt all issues with milestones from being marked as stale. Default to false.'
default : 'false'
2021-02-16 19:18:48 +08:00
required : false
exempt-all-pr-milestones :
2021-10-09 01:19:07 +08:00
description : 'Exempt all pull requests with milestones from being marked as stale. Default to false.'
default : 'false'
2021-01-19 18:54:16 +08:00
required : false
2021-04-29 04:33:42 +08:00
any-of-issue-labels :
2021-10-09 02:26:58 +08:00
description : 'Only issues with all of these labels are checked if stale. Defaults to `` (disabled) and can be a comma-separated list of labels.'
2021-04-29 04:33:42 +08:00
default : ''
required : false
any-of-pr-labels :
2021-10-09 02:26:58 +08:00
description : 'Only pull requests with all of these labels are checked if stale. Defaults to `` (disabled) and can be a comma-separated list of labels.'
2021-04-29 04:33:42 +08:00
default : ''
required : false
2021-03-01 08:08:33 +08:00
only-issue-labels :
description : 'Only issues with all of these labels are checked if stale. Defaults to `[]` (disabled) and can be a comma-separated list of labels. Override "only-labels" option regarding only the issues.'
default : ''
required : false
only-pr-labels :
description : 'Only pull requests with all of these labels are checked if stale. Defaults to `[]` (disabled) and can be a comma-separated list of labels. Override "only-labels" option regarding only the pull requests.'
default : ''
required : false
2019-08-07 04:25:08 +08:00
operations-per-run :
2021-01-18 09:22:36 +08:00
description : 'The maximum number of operations per run, used to control rate limiting (GitHub API CRUD related).'
2021-01-16 21:28:29 +08:00
default : '30'
required : false
2020-05-11 22:46:03 +08:00
remove-stale-when-updated :
2021-06-16 05:16:31 +08:00
description : 'Remove stale labels from issues and pull requests when they are updated or commented on.'
2021-04-30 21:14:51 +08:00
default : 'true'
required : false
remove-issue-stale-when-updated :
2021-06-16 05:16:31 +08:00
description : 'Remove stale labels from issues when they are updated or commented on. Override "remove-stale-when-updated" option regarding only the issues.'
2021-05-26 01:25:52 +08:00
default : ''
2021-04-30 21:14:51 +08:00
required : false
remove-pr-stale-when-updated :
2021-06-16 05:16:31 +08:00
description : 'Remove stale labels from pull requests when they are updated or commented on. Override "remove-stale-when-updated" option regarding only the pull requests.'
2021-05-26 01:25:52 +08:00
default : ''
2021-01-16 21:28:29 +08:00
required : false
2020-04-17 01:57:59 +08:00
debug-only :
description : 'Run the processor in debug mode without actually performing any operations on live issues.'
2021-01-16 21:28:29 +08:00
default : 'false'
required : false
2020-06-24 01:55:24 +08:00
ascending :
2021-03-04 19:38:05 +08:00
description : 'The order to get issues or pull requests. Defaults to false, which is descending.'
2021-01-16 21:28:29 +08:00
default : 'false'
required : false
2021-01-15 19:49:38 +08:00
delete-branch :
description : 'Delete the git branch after closing a stale pull request.'
2021-01-16 21:28:29 +08:00
default : 'false'
required : false
2021-01-18 09:22:36 +08:00
start-date :
2021-02-16 19:18:48 +08:00
description : 'The date used to skip the stale action on issue/pull request created before it (ISO 8601 or RFC 2822).'
2021-01-18 09:22:36 +08:00
default : ''
required : false
2021-02-28 19:15:08 +08:00
exempt-issue-assignees :
2021-10-09 01:06:51 +08:00
description : 'The assignees which exempt an issue from being marked as stale. Separate multiple assignees with commas (eg. "user1,user2").'
2021-02-28 19:15:08 +08:00
default : ''
required : false
exempt-pr-assignees :
2021-10-09 01:06:51 +08:00
description : 'The assignees which exempt a pull request from being marked as stale. Separate multiple assignees with commas (eg. "user1,user2").'
2021-02-28 19:15:08 +08:00
default : ''
required : false
exempt-all-issue-assignees :
2021-10-09 00:50:37 +08:00
description : 'Exempt all issues with assignees from being marked as stale. Default to false.'
default : 'false'
2021-02-28 19:15:08 +08:00
required : false
exempt-all-pr-assignees :
2021-10-09 00:50:37 +08:00
description : 'Exempt all pull requests with assignees from being marked as stale. Default to false.'
default : 'false'
2021-02-28 19:15:08 +08:00
required : false
2021-09-20 21:37:32 +08:00
exempt-draft-pr :
description : 'Exempt draft pull requests from being marked as stale. Default to false.'
default : 'false'
required : false
2021-03-02 04:34:35 +08:00
enable-statistics :
description : 'Display some statistics at the end regarding the stale workflow (only when the logs are enabled).'
default : 'true'
required : false
2021-09-14 22:13:17 +08:00
labels-to-add-when-unstale :
description : 'A comma delimited list of labels to add when a stale issue or pull request receives activity and has the stale-issue-label or stale-pr-label removed from it.'
default : ''
required : false
labels-to-remove-when-unstale :
description : 'A comma delimited list of labels to remove when a stale issue or pull request receives activity and has the stale-issue-label or stale-pr-label removed from it.'
default : ''
required : false
2021-09-17 21:54:38 +08:00
ignore-issue-updates :
2021-10-09 00:06:39 +08:00
description : 'Any update (update/comment) can reset the stale idle time on the issues.'
default : 'false'
2021-09-17 21:54:38 +08:00
required : false
ignore-pr-updates :
2021-10-09 00:06:39 +08:00
description : 'Any update (update/comment) can reset the stale idle time on the pull requests.'
default : 'false'
2021-09-17 21:54:38 +08:00
required : false
2021-06-03 21:18:48 +08:00
outputs :
closed-issues-prs :
description : 'List of all closed issues and pull requests.'
staled-issues-prs :
description : 'List of all staled issues and pull requests.'
2019-08-04 09:34:59 +08:00
runs :
using : 'node12'
2020-04-15 02:02:29 +08:00
main : 'dist/index.js'