actions-marketplace-validations/Close Stale Issues
Close issues and pull requests with no recent activity
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit May 21, 2026
- License
- MIT
Pinned Snippet
uses: actions-marketplace-validations/actions_stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # no releases — HEAD as of 2026-07-10tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| repo-token | Token for the repository. Can be passed in using `{{ secrets.GITHUB_TOKEN }}`. | no | ${{ github.token }} |
| stale-issue-message | The message to post on the issue when tagging it. If none provided, will not mark issues stale. | no | — |
| stale-pr-message | The message to post on the pull request when tagging it. If none provided, will not mark pull requests stale. | no | — |
| close-issue-message | The message to post on the issue when closing it. If none provided, will not comment when closing an issue. | no | — |
| close-pr-message | The message to post on the pull request when closing it. If none provided, will not comment when closing a pull requests. | no | — |
| days-before-stale | 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. | no | 60 |
| days-before-issue-stale | 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. | no | — |
| days-before-pr-stale | 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. | no | — |
| days-before-close | The number of days to wait to close an issue or a pull request after it being marked stale. Set to -1 to never close stale issues or pull requests. | no | 7 |
| days-before-issue-close | The number of days to wait to close an issue after it being marked stale. Set to -1 to never close stale issues. Override "days-before-close" option regarding only the issues. | no | — |
| days-before-pr-close | The number of days to wait to close a pull request after it being marked stale. Set to -1 to never close stale pull requests. Override "days-before-close" option regarding only the pull requests. | no | — |
| stale-issue-label | The label to apply when an issue is stale. | no | Stale |
| close-issue-label | The label to apply when an issue is closed. | no | — |
| exempt-issue-labels | The labels that mean an issue is exempt from being marked stale. Separate multiple labels with commas (eg. "label1,label2"). | no | "" |
| close-issue-reason | The reason to use when closing an issue. | no | not_planned |
| stale-pr-label | The label to apply when a pull request is stale. | no | Stale |
| close-pr-label | The label to apply when a pull request is closed. | no | — |
| exempt-pr-labels | The labels that mean a pull request is exempt from being marked as stale. Separate multiple labels with commas (eg. "label1,label2"). | no | "" |
| exempt-milestones | The milestones that mean an issue or a pull request is exempt from being marked as stale. Separate multiple milestones with commas (eg. "milestone1,milestone2"). | no | "" |
| exempt-issue-milestones | The milestones that mean an issue is exempt from being marked as stale. Separate multiple milestones with commas (eg. "milestone1,milestone2"). Override "exempt-milestones" option regarding only the issues. | no | "" |
| exempt-pr-milestones | The milestones that mean a pull request is exempt from being marked as stale. Separate multiple milestones with commas (eg. "milestone1,milestone2"). Override "exempt-milestones" option regarding only the pull requests. | no | "" |
| exempt-all-milestones | Exempt all issues and pull requests with milestones from being marked as stale. Default to false. | no | false |
| exempt-all-issue-milestones | Exempt all issues with milestones from being marked as stale. Override "exempt-all-milestones" option regarding only the issues. | no | "" |
| exempt-all-pr-milestones | Exempt all pull requests with milestones from being marked as stale. Override "exempt-all-milestones" option regarding only the pull requests. | no | "" |
| only-labels | Only issues or pull requests with all of these labels are checked if stale. Defaults to `` (disabled) and can be a comma-separated list of labels. | no | "" |
| any-of-labels | Only issues or pull requests with at least one of these labels are checked if stale. Defaults to `` (disabled) and can be a comma-separated list of labels. | no | "" |
| any-of-issue-labels | Only issues with at least one of these labels are checked if stale. Defaults to `` (disabled) and can be a comma-separated list of labels. Override "any-of-labels" option regarding only the issues. | no | "" |
| any-of-pr-labels | Only pull requests with at least one of these labels are checked if stale. Defaults to `` (disabled) and can be a comma-separated list of labels. Override "any-of-labels" option regarding only the pull requests. | no | "" |
| only-issue-labels | 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. | no | "" |
| only-pr-labels | 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. | no | "" |
| operations-per-run | The maximum number of operations per run, used to control rate limiting (GitHub API CRUD related). | no | 30 |
| remove-stale-when-updated | Remove stale labels from issues and pull requests when they are updated or commented on. | no | true |
| remove-issue-stale-when-updated | Remove stale labels from issues when they are updated or commented on. Override "remove-stale-when-updated" option regarding only the issues. | no | "" |
| remove-pr-stale-when-updated | Remove stale labels from pull requests when they are updated or commented on. Override "remove-stale-when-updated" option regarding only the pull requests. | no | "" |
| debug-only | Run the processor in debug mode without actually performing any operations on live issues. | no | false |
| ascending | The order to get issues or pull requests. Defaults to false, which is descending. | no | false |
| sort-by | What to sort results by. Valid options are `created`, `updated`, and `comments`. Defaults to `created`. | no | created |
| delete-branch | Delete the git branch after closing a stale pull request. | no | false |
| start-date | The date used to skip the stale action on issue/pull request created before it (ISO 8601 or RFC 2822). | no | "" |
| exempt-assignees | The assignees which exempt an issue or a pull request from being marked as stale. Separate multiple assignees with commas (eg. "user1,user2"). | no | "" |
| exempt-issue-assignees | The assignees which exempt an issue from being marked as stale. Separate multiple assignees with commas (eg. "user1,user2"). Override "exempt-assignees" option regarding only the issues. | no | "" |
| exempt-pr-assignees | The assignees which exempt a pull request from being marked as stale. Separate multiple assignees with commas (eg. "user1,user2"). Override "exempt-assignees" option regarding only the pull requests. | no | "" |
| exempt-all-assignees | Exempt all issues and pull requests with assignees from being marked as stale. Default to false. | no | false |
| exempt-all-issue-assignees | Exempt all issues with assignees from being marked as stale. Override "exempt-all-assignees" option regarding only the issues. | no | "" |
| exempt-all-pr-assignees | Exempt all pull requests with assignees from being marked as stale. Override "exempt-all-assignees" option regarding only the pull requests. | no | "" |
| exempt-draft-pr | Exempt draft pull requests from being marked as stale. Default to false. | no | false |
| enable-statistics | Display some statistics at the end regarding the stale workflow (only when the logs are enabled). | no | true |
| labels-to-add-when-unstale | A comma delimited list of labels to add when an issue or pull request becomes unstale. | no | "" |
| labels-to-remove-when-stale | A comma delimited list of labels to remove when an issue or pull request becomes stale. | no | "" |
| labels-to-remove-when-unstale | A comma delimited list of labels to remove when an issue or pull request becomes unstale. | no | "" |
| ignore-updates | Any update (update/comment) can reset the stale idle time on the issues and pull requests. | no | false |
| ignore-issue-updates | Any update (update/comment) can reset the stale idle time on the issues. Override "ignore-updates" option regarding only the issues. | no | "" |
| ignore-pr-updates | Any update (update/comment) can reset the stale idle time on the pull requests. Override "ignore-updates" option regarding only the pull requests. | no | "" |
| include-only-assigned | Only the issues or the pull requests with an assignee will be marked as stale automatically. | no | false |
| only-issue-types | Only issues with a matching type are processed as stale/closed. Defaults to `[]` (disabled) and can be a comma-separated list of issue types. | no | "" |
Outputs
| name | description |
|---|---|
| closed-issues-prs | List of all closed issues and pull requests. |
| staled-issues-prs | List of all staled issues and pull requests. |