actions/Close Stale Issues

Close issues and pull requests with no recent activity

View on GitHub

Trust Signals

Scorecard Score
Scorecard 4–6scored Jul 13, 2026
Maintenance Recency
Activelast commit Jul 9, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions/stale@1e223db275d687790206a7acac4d1a11bd6fe629 # v10.4.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
repo-tokenToken for the repository. Can be passed in using `{{ secrets.GITHUB_TOKEN }}`.no${{ github.token }}
stale-issue-messageThe message to post on the issue when tagging it. If none provided, will not mark issues stale.no
stale-pr-messageThe message to post on the pull request when tagging it. If none provided, will not mark pull requests stale.no
close-issue-messageThe message to post on the issue when closing it. If none provided, will not comment when closing an issue.no
close-pr-messageThe message to post on the pull request when closing it. If none provided, will not comment when closing a pull requests.no
days-before-staleThe 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.no60
days-before-issue-staleThe 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-staleThe 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-closeThe 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.no7
days-before-issue-closeThe 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-closeThe 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-labelThe label to apply when an issue is stale.noStale
close-issue-labelThe label to apply when an issue is closed.no
exempt-issue-labelsThe labels that mean an issue is exempt from being marked stale. Separate multiple labels with commas (eg. "label1,label2").no""
close-issue-reasonThe reason to use when closing an issue.nonot_planned
stale-pr-labelThe label to apply when a pull request is stale.noStale
close-pr-labelThe label to apply when a pull request is closed.no
exempt-pr-labelsThe labels that mean a pull request is exempt from being marked as stale. Separate multiple labels with commas (eg. "label1,label2").no""
exempt-milestonesThe 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-milestonesThe 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-milestonesThe 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-milestonesExempt all issues and pull requests with milestones from being marked as stale. Default to false.nofalse
exempt-all-issue-milestonesExempt all issues with milestones from being marked as stale. Override "exempt-all-milestones" option regarding only the issues.no""
exempt-all-pr-milestonesExempt all pull requests with milestones from being marked as stale. Override "exempt-all-milestones" option regarding only the pull requests.no""
only-labelsOnly 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-labelsOnly 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-labelsOnly 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-labelsOnly 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-labelsOnly 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-labelsOnly 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-runThe maximum number of operations per run, used to control rate limiting (GitHub API CRUD related).no30
remove-stale-when-updatedRemove stale labels from issues and pull requests when they are updated or commented on.notrue
remove-issue-stale-when-updatedRemove 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-updatedRemove 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-onlyRun the processor in debug mode without actually performing any operations on live issues.nofalse
ascendingThe order to get issues or pull requests. Defaults to false, which is descending.nofalse
sort-byWhat to sort results by. Valid options are `created`, `updated`, and `comments`. Defaults to `created`.nocreated
delete-branchDelete the git branch after closing a stale pull request.nofalse
start-dateThe date used to skip the stale action on issue/pull request created before it (ISO 8601 or RFC 2822).no""
exempt-assigneesThe 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-assigneesThe 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-assigneesThe 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-assigneesExempt all issues and pull requests with assignees from being marked as stale. Default to false.nofalse
exempt-all-issue-assigneesExempt all issues with assignees from being marked as stale. Override "exempt-all-assignees" option regarding only the issues.no""
exempt-all-pr-assigneesExempt all pull requests with assignees from being marked as stale. Override "exempt-all-assignees" option regarding only the pull requests.no""
exempt-draft-prExempt draft pull requests from being marked as stale. Default to false.nofalse
enable-statisticsDisplay some statistics at the end regarding the stale workflow (only when the logs are enabled).notrue
labels-to-add-when-unstaleA comma delimited list of labels to add when an issue or pull request becomes unstale.no""
labels-to-remove-when-staleA comma delimited list of labels to remove when an issue or pull request becomes stale.no""
labels-to-remove-when-unstaleA comma delimited list of labels to remove when an issue or pull request becomes unstale.no""
ignore-updatesAny update (update/comment) can reset the stale idle time on the issues and pull requests.nofalse
ignore-issue-updatesAny update (update/comment) can reset the stale idle time on the issues. Override "ignore-updates" option regarding only the issues.no""
ignore-pr-updatesAny 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-assignedOnly the issues or the pull requests with an assignee will be marked as stale automatically.nofalse
only-issue-typesOnly issues with a matching type are processed as stale/closed. Defaults to `[]` (disabled) and can be a comma-separated list of issue types.no""
namedescription
closed-issues-prsList of all closed issues and pull requests.
staled-issues-prsList of all staled issues and pull requests.