actions-marketplace-validations/Process stale issues and PRs

An action to stale and close automatically your issues and pull requests

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jan 6, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/sonia-corporation_stale@520464ace65afd02a6d4c65ae4e68612f3f5b7ce # no releases — HEAD as of 2026-07-13

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

namedescriptionrequireddefault
github-tokenA GitHub token used to perform the API calls to GitHub through `@actions/github`. Usually `{{ secrets.GITHUB_TOKEN }}`.no${{ github.token }}
dry-runA mode where any Data Manipulation Language will be skipped. Useful to debug safely and without risking messing up with your repository.nofalse
issue-stale-labelThe label that will be added to the issue when it is stale.nostale
issue-ignore-all-labelsAllow to ignore the processing of issues that contains any labels.nofalse
issue-ignore-any-labelsAllow to ignore the processing of issues that contains one of those labels (multiline).no""
issue-ignore-all-assigneesAllow to ignore the processing of issues that contains any assignees.nofalse
issue-ignore-any-assigneesAllow to ignore the processing of issues that contains one of those assignees (multiline).no""
issue-only-with-assigneesOnly allow the processing of issues that contains at least one assignee.nofalse
issue-only-any-assigneesOnly allow the processing of issues that contains one of those assignees (multiline).no""
issue-ignore-all-projectsAllow to ignore the processing of issues that contains any projects.nofalse
issue-ignore-any-projectsAllow to ignore the processing of issues that contains one of those projects (multiline).no""
issue-only-with-projectsOnly allow the processing of issues that contains at least one project.nofalse
issue-only-any-projectsOnly allow the processing of issues that contains one of those projects (multiline).no""
issue-ignore-all-milestonesAllow to ignore the processing of issues that contains any milestones.nofalse
issue-ignore-any-milestonesAllow to ignore the processing of issues that contains one of those milestones (multiline).no""
issue-only-with-milestonesOnly allow the processing of issues that contains at least one milestone.nofalse
issue-only-any-milestonesOnly allow the processing of issues that contains one of those milestones (multiline).no""
issue-stale-commentThe comment that will be sent once the issue is stale (keep empty to not send a comment).no""
issue-close-commentThe comment that will be sent once the issue is close (keep empty to not send a comment).no""
issue-days-before-staleThe number of days until the issue is considered as stale.no30
issue-days-before-closeThe number of days until a stale issue is considered as closed.no10
issue-limit-api-queries-countLimit the quantity of API queries calls performed during the processing of issues (-1 for unlimited).no-1
issue-limit-api-mutations-countLimit the quantity of API mutations calls performed during the processing of issues (-1 for unlimited).no-1
issue-ignore-before-creation-dateAllow to ignore the processing of issues that were created before this date (ISO 8601, see https://moment.github.io/luxon/#/parsing?id=iso-8601).no""
issue-processingAllow to process the issues.notrue
issue-close-reasonThe reason when closing an issue (completed or not planned).nonot planned
issue-add-labels-after-staleA list of labels added when the processing stale the issue (multiline).no""
issue-remove-labels-after-staleA list of labels removed when the processing stale the issue (multiline).no""
issue-add-labels-after-closeA list of labels added when the processing close the issue (multiline).no""
issue-remove-labels-after-closeA list of labels removed when the processing close the issue (multiline).no""
pull-request-stale-labelThe label that will be added to the pull request when it is stale.nostale
pull-request-ignore-all-labelsAllow to ignore the processing of pull requests that contains any labels.nofalse
pull-request-ignore-any-labelsAllow to ignore the processing of pull requests that contains one of those labels (multiline).no""
pull-request-ignore-all-assigneesAllow to ignore the processing of pull requests that contains any assignees.nofalse
pull-request-ignore-any-assigneesAllow to ignore the processing of pull requests that contains one of those assignees (multiline).no""
pull-request-only-with-assigneesOnly allow the processing of pull requests that contains at least one assignee.nofalse
pull-request-only-any-assigneesOnly allow the processing of pull requests that contains one of those assignees (multiline).no""
pull-request-ignore-all-projectsAllow to ignore the processing of pull requests that contains any projects.nofalse
pull-request-ignore-any-projectsAllow to ignore the processing of pull requests that contains one of those projects (multiline).no""
pull-request-only-with-projectsOnly allow the processing of pull requests that contains at least one project.nofalse
pull-request-only-any-projectsOnly allow the processing of pull requests that contains one of those projects (multiline).no""
pull-request-ignore-all-milestonesAllow to ignore the processing of pull requests that contains any milestones.nofalse
pull-request-ignore-any-milestonesAllow to ignore the processing of pull requests that contains one of those milestones (multiline).no""
pull-request-only-with-milestonesOnly allow the processing of pull requests that contains at least one milestone.nofalse
pull-request-only-any-milestonesOnly allow the processing of pull requests that contains one of those milestones (multiline).no""
pull-request-stale-commentThe comment that will be sent once the pull request is stale (keep empty to not send a comment).no""
pull-request-close-commentThe comment that will be sent once the pull request is close (keep empty to not send a comment).no""
pull-request-days-before-staleThe number of days until the pull request is considered as stale.no30
pull-request-days-before-closeThe number of days until a stale pull request is considered as closed.no10
pull-request-limit-api-queries-countLimit the quantity of API queries calls performed during the processing of pull requests (-1 for unlimited).no-1
pull-request-limit-api-mutations-countLimit the quantity of API mutations calls performed during the processing of pull requests (-1 for unlimited).no-1
pull-request-ignore-before-creation-dateAllow to ignore the processing of pull requests that were created before this date (ISO 8601, see https://moment.github.io/luxon/#/parsing?id=iso-8601).no""
pull-request-ignore-draftAllow to ignore the processing of pull requests that are drafts.nofalse
pull-request-processingAllow to process the pull requests.notrue
pull-request-add-labels-after-staleA list of labels added when the processing stale the pull request (multiline).no""
pull-request-remove-labels-after-staleA list of labels removed when the processing stale the pull request (multiline).no""
pull-request-add-labels-after-closeA list of labels added when the processing close the pull request (multiline).no""
pull-request-remove-labels-after-closeA list of labels removed when the processing close the pull request (multiline).no""
pull-request-to-draft-instead-of-staleConvert the pull request to a draft pull request instead of handling it as a stale candidate.nofalse
pull-request-delete-branch-after-closeDelete the branch when the processing close the pull request.nofalse
namedescription
processed-issues-countThe number of issues processed.
ignored-issues-countThe number of issues ignored.
unaltered-issues-countThe number of issues unaltered (either not good to stale or already stale).
stale-issues-countThe number of issues stale.
already-stale-issues-countThe number of issues processed which were already stale.
remove-stale-issues-countThe number of issues from where the stale state was removed.
close-issues-countThe number of issues closed.
added-issues-comments-countThe number of added issues comments.
issues-labels-countThe number of mutated issues labels (added or removed).
added-issues-labels-countThe number of added issues labels.
removed-issues-labels-countThe number of removed issues labels.
called-api-issues-countThe number of GitHub API calls performed for the issues.
called-api-issues-queries-countThe number of GitHub API queries calls performed for the issues.
called-api-issues-mutations-countThe number of GitHub API mutations calls performed for the issues.
processed-pull-requests-countThe number of pull requests processed.
ignored-pull-requests-countThe number of pull requests ignored.
unaltered-pull-requests-countThe number of pull requests unaltered (either not good to stale or already stale).
stale-pull-requests-countThe number of pull requests stale.
already-stale-pull-requests-countThe number of pull requests processed which were already stale.
remove-stale-pull-requests-countThe number of pull requests from where the stale state was removed.
close-pull-requests-countThe number of pull requests closed.
deleted-pull-requests-branches-countThe number of deleted pull requests branches closed.
added-pull-requests-comments-countThe number of added pull requests comments.
pull-requests-labels-countThe number of mutated pull requests labels (added or removed).
added-pull-requests-labels-countThe number of added pull requests labels.
removed-pull-requests-labels-countThe number of removed pull requests labels.
draft-pull-requests-countThe number of pull requests converted to draft.
called-api-pull-requests-countThe number of GitHub API calls performed for the pull requests.
called-api-pull-requests-queries-countThe number of GitHub API queries calls performed for the pull requests.
called-api-pull-requests-mutations-countThe number of GitHub API mutations calls performed for the pull requests.