actions-marketplace-validations/Process stale issues and PRs
An action to stale and close automatically your issues and pull requests
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Jan 6, 2026
- License
- MIT
Pinned Snippet
uses: actions-marketplace-validations/sonia-corporation_stale@520464ace65afd02a6d4c65ae4e68612f3f5b7ce # no releases — HEAD as of 2026-07-13tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | A GitHub token used to perform the API calls to GitHub through `@actions/github`. Usually `{{ secrets.GITHUB_TOKEN }}`. | no | ${{ github.token }} |
| dry-run | A mode where any Data Manipulation Language will be skipped. Useful to debug safely and without risking messing up with your repository. | no | false |
| issue-stale-label | The label that will be added to the issue when it is stale. | no | stale |
| issue-ignore-all-labels | Allow to ignore the processing of issues that contains any labels. | no | false |
| issue-ignore-any-labels | Allow to ignore the processing of issues that contains one of those labels (multiline). | no | "" |
| issue-ignore-all-assignees | Allow to ignore the processing of issues that contains any assignees. | no | false |
| issue-ignore-any-assignees | Allow to ignore the processing of issues that contains one of those assignees (multiline). | no | "" |
| issue-only-with-assignees | Only allow the processing of issues that contains at least one assignee. | no | false |
| issue-only-any-assignees | Only allow the processing of issues that contains one of those assignees (multiline). | no | "" |
| issue-ignore-all-projects | Allow to ignore the processing of issues that contains any projects. | no | false |
| issue-ignore-any-projects | Allow to ignore the processing of issues that contains one of those projects (multiline). | no | "" |
| issue-only-with-projects | Only allow the processing of issues that contains at least one project. | no | false |
| issue-only-any-projects | Only allow the processing of issues that contains one of those projects (multiline). | no | "" |
| issue-ignore-all-milestones | Allow to ignore the processing of issues that contains any milestones. | no | false |
| issue-ignore-any-milestones | Allow to ignore the processing of issues that contains one of those milestones (multiline). | no | "" |
| issue-only-with-milestones | Only allow the processing of issues that contains at least one milestone. | no | false |
| issue-only-any-milestones | Only allow the processing of issues that contains one of those milestones (multiline). | no | "" |
| issue-stale-comment | The comment that will be sent once the issue is stale (keep empty to not send a comment). | no | "" |
| issue-close-comment | The comment that will be sent once the issue is close (keep empty to not send a comment). | no | "" |
| issue-days-before-stale | The number of days until the issue is considered as stale. | no | 30 |
| issue-days-before-close | The number of days until a stale issue is considered as closed. | no | 10 |
| issue-limit-api-queries-count | Limit the quantity of API queries calls performed during the processing of issues (-1 for unlimited). | no | -1 |
| issue-limit-api-mutations-count | Limit the quantity of API mutations calls performed during the processing of issues (-1 for unlimited). | no | -1 |
| issue-ignore-before-creation-date | Allow 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-processing | Allow to process the issues. | no | true |
| issue-close-reason | The reason when closing an issue (completed or not planned). | no | not planned |
| issue-add-labels-after-stale | A list of labels added when the processing stale the issue (multiline). | no | "" |
| issue-remove-labels-after-stale | A list of labels removed when the processing stale the issue (multiline). | no | "" |
| issue-add-labels-after-close | A list of labels added when the processing close the issue (multiline). | no | "" |
| issue-remove-labels-after-close | A list of labels removed when the processing close the issue (multiline). | no | "" |
| pull-request-stale-label | The label that will be added to the pull request when it is stale. | no | stale |
| pull-request-ignore-all-labels | Allow to ignore the processing of pull requests that contains any labels. | no | false |
| pull-request-ignore-any-labels | Allow to ignore the processing of pull requests that contains one of those labels (multiline). | no | "" |
| pull-request-ignore-all-assignees | Allow to ignore the processing of pull requests that contains any assignees. | no | false |
| pull-request-ignore-any-assignees | Allow to ignore the processing of pull requests that contains one of those assignees (multiline). | no | "" |
| pull-request-only-with-assignees | Only allow the processing of pull requests that contains at least one assignee. | no | false |
| pull-request-only-any-assignees | Only allow the processing of pull requests that contains one of those assignees (multiline). | no | "" |
| pull-request-ignore-all-projects | Allow to ignore the processing of pull requests that contains any projects. | no | false |
| pull-request-ignore-any-projects | Allow to ignore the processing of pull requests that contains one of those projects (multiline). | no | "" |
| pull-request-only-with-projects | Only allow the processing of pull requests that contains at least one project. | no | false |
| pull-request-only-any-projects | Only allow the processing of pull requests that contains one of those projects (multiline). | no | "" |
| pull-request-ignore-all-milestones | Allow to ignore the processing of pull requests that contains any milestones. | no | false |
| pull-request-ignore-any-milestones | Allow to ignore the processing of pull requests that contains one of those milestones (multiline). | no | "" |
| pull-request-only-with-milestones | Only allow the processing of pull requests that contains at least one milestone. | no | false |
| pull-request-only-any-milestones | Only allow the processing of pull requests that contains one of those milestones (multiline). | no | "" |
| pull-request-stale-comment | The comment that will be sent once the pull request is stale (keep empty to not send a comment). | no | "" |
| pull-request-close-comment | The comment that will be sent once the pull request is close (keep empty to not send a comment). | no | "" |
| pull-request-days-before-stale | The number of days until the pull request is considered as stale. | no | 30 |
| pull-request-days-before-close | The number of days until a stale pull request is considered as closed. | no | 10 |
| pull-request-limit-api-queries-count | Limit the quantity of API queries calls performed during the processing of pull requests (-1 for unlimited). | no | -1 |
| pull-request-limit-api-mutations-count | Limit the quantity of API mutations calls performed during the processing of pull requests (-1 for unlimited). | no | -1 |
| pull-request-ignore-before-creation-date | Allow 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-draft | Allow to ignore the processing of pull requests that are drafts. | no | false |
| pull-request-processing | Allow to process the pull requests. | no | true |
| pull-request-add-labels-after-stale | A list of labels added when the processing stale the pull request (multiline). | no | "" |
| pull-request-remove-labels-after-stale | A list of labels removed when the processing stale the pull request (multiline). | no | "" |
| pull-request-add-labels-after-close | A list of labels added when the processing close the pull request (multiline). | no | "" |
| pull-request-remove-labels-after-close | A list of labels removed when the processing close the pull request (multiline). | no | "" |
| pull-request-to-draft-instead-of-stale | Convert the pull request to a draft pull request instead of handling it as a stale candidate. | no | false |
| pull-request-delete-branch-after-close | Delete the branch when the processing close the pull request. | no | false |
Outputs
| name | description |
|---|---|
| processed-issues-count | The number of issues processed. |
| ignored-issues-count | The number of issues ignored. |
| unaltered-issues-count | The number of issues unaltered (either not good to stale or already stale). |
| stale-issues-count | The number of issues stale. |
| already-stale-issues-count | The number of issues processed which were already stale. |
| remove-stale-issues-count | The number of issues from where the stale state was removed. |
| close-issues-count | The number of issues closed. |
| added-issues-comments-count | The number of added issues comments. |
| issues-labels-count | The number of mutated issues labels (added or removed). |
| added-issues-labels-count | The number of added issues labels. |
| removed-issues-labels-count | The number of removed issues labels. |
| called-api-issues-count | The number of GitHub API calls performed for the issues. |
| called-api-issues-queries-count | The number of GitHub API queries calls performed for the issues. |
| called-api-issues-mutations-count | The number of GitHub API mutations calls performed for the issues. |
| processed-pull-requests-count | The number of pull requests processed. |
| ignored-pull-requests-count | The number of pull requests ignored. |
| unaltered-pull-requests-count | The number of pull requests unaltered (either not good to stale or already stale). |
| stale-pull-requests-count | The number of pull requests stale. |
| already-stale-pull-requests-count | The number of pull requests processed which were already stale. |
| remove-stale-pull-requests-count | The number of pull requests from where the stale state was removed. |
| close-pull-requests-count | The number of pull requests closed. |
| deleted-pull-requests-branches-count | The number of deleted pull requests branches closed. |
| added-pull-requests-comments-count | The number of added pull requests comments. |
| pull-requests-labels-count | The number of mutated pull requests labels (added or removed). |
| added-pull-requests-labels-count | The number of added pull requests labels. |
| removed-pull-requests-labels-count | The number of removed pull requests labels. |
| draft-pull-requests-count | The number of pull requests converted to draft. |
| called-api-pull-requests-count | The number of GitHub API calls performed for the pull requests. |
| called-api-pull-requests-queries-count | The number of GitHub API queries calls performed for the pull requests. |
| called-api-pull-requests-mutations-count | The number of GitHub API mutations calls performed for the pull requests. |