2.5.0 • Published 1 year ago

@sonia-corporation/stale v2.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Stale

A GitHub action to stale and close automatically your issues and pull requests.

Quality:
GitHub last commit Maintainability CodeFactor DeepScan grade Test Coverage codecov GitHub issues GitHub pull requests Build Release Stale Dependencies Dev Dependencies semantic-release sonia: changelog sonia: stale action code style: prettier

Community:

All Contributors

commitizen PRs

Statistics:
GitHub release (latest by date) GitHub top language GitHub repo size GitHub code size in bytes GitHub npm.io npm.io npm.io npm.io npm.io npm.io npm.io

Documentation

To have in-depth documentation and examples, see the documentation website.
The documentation website is also available as a GitHub page, but we deprecated it.

Default configuration

Issues

After 30 days (coming from issue-days-before-stale) without any update on the issue, add a label stale (coming from issue-stale-label) on the issue to indicate that it is stale.
If an update occur after being stale, the stale label will be removed and the count will be reset back to 30 days.
Removing the stale label manually will also do the trick.
If the stale label on the issue is still here for more than 10 days (coming from issue-days-before-close), the issue will be closed.

Pull requests

After 30 days (coming from pull-request-days-before-stale) without any update on the pull request, add a label stale (coming from pull-request-stale-label) on the pull request to indicate that it is stale.
If an update occur after being stale, the stale label will be removed and the count will be reset back to 30 days.
Removing the stale label manually will also do the trick.
If the stale label on the pull request is still here for more than 10 days (coming from pull-request-days-before-close), the pull request will be closed.

All the common inputs

All the inputs that are used both for issues and pull requests.

InputDescriptionDefault
github-tokenA GitHub token used to perform the API calls to GitHub through @actions/github. Usually ${{ secrets.GITHUB_TOKEN }}.${{ 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.false

All the issues inputs

InputDescriptionDefault
Labels
issue-stale-labelThe label that will be added to the issue when it is stale.stale
issue-ignore-all-labelsAllow to ignore the processing of issues that contains any labels.false
issue-ignore-any-labelsAllow to ignore the processing of issues that contains one of those labels (multiline).
Assignees
issue-ignore-all-assigneesAllow to ignore the processing of issues that contains any assignees.false
issue-ignore-any-assigneesAllow to ignore the processing of issues that contains one of those assignees (multiline).
issue-only-with-assigneesOnly allow the processing of issues that contains at least one assignee.false
issue-only-any-assigneesOnly allow the processing of issues that contains one of those assignees (multiline).
Project cards
issue-ignore-all-project-cardsAllow to ignore the processing of issues that contains any project cards.false
issue-ignore-any-project-cardsAllow to ignore the processing of issues that contains one of those project cards (multiline).
issue-only-with-project-cardsOnly allow the processing of issues that contains at least one project card.false
issue-only-any-project-cardsOnly allow the processing of issues that contains one of those project cards (multiline).
Milestones
issue-ignore-all-milestonesAllow to ignore the processing of issues that contains any milestones.false
issue-ignore-any-milestonesAllow to ignore the processing of issues that contains one of those milestones (multiline).
issue-only-with-milestonesOnly allow the processing of issues that contains at least one milestone.false
issue-only-any-milestonesOnly allow the processing of issues that contains one of those milestones (multiline).
Comments
issue-stale-commentThe comment that will be sent once the issue is stale (keep empty to not send a comment).
issue-close-commentThe comment that will be sent once the issue is close (keep empty to not send a comment).
Durations
issue-days-before-staleThe number of days until the issue is considered as stale.30
issue-days-before-closeThe number of days until a stale issue is considered as closed.10
Limiters
issue-limit-api-queries-countLimit the quantity of API queries calls performed during the processing of issues (-1 for unlimited).-1
issue-limit-api-mutations-countLimit the quantity of API mutations calls performed during the processing of issues (-1 for unlimited).-1
issue-ignore-before-creation-dateAllow to ignore the processing of issues that were created before this date (ISO 8601).
Others
issue-processingAllow to process the issues.true
issue-close-reasonThe reason when closing an issue (completed or not planned).not planned
issue-add-labels-after-staleA list of labels added when the processing stale the issue (multiline).
issue-remove-labels-after-staleA list of labels removed when the processing stale the issue (multiline).
issue-add-labels-after-closeA list of labels added when the processing close the issue (multiline).
issue-remove-labels-after-closeA list of labels removed when the processing close the issue (multiline).

All the issues outputs

OutputDescription
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.

All the pull requests inputs

InputDescriptionDefault
Labels
pull-request-stale-labelThe label that will be added to the pull request when it is stale.stale
pull-request-ignore-all-labelsAllow to ignore the processing of pull requests that contains any labels.false
pull-request-ignore-any-labelsAllow to ignore the processing of pull requests that contains one of those labels (multiline).
Assignees
pull-request-ignore-all-assigneesAllow to ignore the processing of pull requests that contains any assignees.false
pull-request-ignore-any-assigneesAllow to ignore the processing of pull requests that contains one of those assignees (multiline).
pull-request-only-with-assigneesOnly allow the processing of pull requests that contains at least one assignee.false
pull-request-only-any-assigneesOnly allow the processing of pull requests that contains one of those assignees (multiline).
Project cards
pull-request-ignore-all-project-cardsAllow to ignore the processing of pull requests that contains any project cards.false
pull-request-ignore-any-project-cardsAllow to ignore the processing of pull requests that contains one of those project cards (multiline).
pull-request-only-with-project-cardsOnly allow the processing of pull requests that contains at least one project card.false
pull-request-only-any-project-cardsOnly allow the processing of pull requests that contains one of those project cards (multiline).
Milestones
pull-request-ignore-all-milestonesAllow to ignore the processing of pull requests that contains any milestones.false
pull-request-ignore-any-milestonesAllow to ignore the processing of pull requests that contains one of those milestones (multiline).
pull-request-only-with-milestonesOnly allow the processing of pull requests that contains at least one milestone.false
pull-request-only-any-milestonesOnly allow the processing of pull requests that contains one of those milestones (multiline).
Comments
pull-request-stale-commentThe comment that will be sent once the pull request is stale (keep empty to not send a comment).
pull-request-close-commentThe comment that will be sent once the pull request is close (keep empty to not send a comment).
Durations
pull-request-days-before-staleThe number of days until the pull request is considered as stale.30
pull-request-days-before-closeThe number of days until a stale pull request is considered as closed.10
Limiters
pull-request-limit-api-queries-countLimit the quantity of API queries calls performed during the processing of pull requests (-1 for unlimited).-1
pull-request-limit-api-mutations-countLimit the quantity of API mutations calls performed during the processing of pull requests (-1 for unlimited).-1
pull-request-ignore-before-creation-dateAllow to ignore the processing of pull requests that were created before this date (ISO 8601).
pull-request-ignore-draftAllow to ignore the processing of pull requests that are drafts.false
Others
pull-request-processingAllow to process the pull requests.true
pull-request-add-labels-after-staleA list of labels added when the processing stale the pull request (multiline).
pull-request-remove-labels-after-staleA list of labels removed when the processing stale the pull request (multiline).
pull-request-add-labels-after-closeA list of labels added when the processing close the pull request (multiline).
pull-request-remove-labels-after-closeA list of labels removed when the processing close the pull request (multiline).
pull-request-to-draft-instead-of-staleConvert the pull request to a draft pull request instead of handling it as a stale candidate.false
pull-request-delete-branch-after-closeDelete the branch when the processing close the pull request.false

All the pull requests outputs

OutputDescription
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.

Examples

Checkout the documentation to have some examples.

Changelog

See all the changes on the website.

Contributing

Check out the contributing file before helping us.

License

This project is licensed under the MIT License - see the license for details.

Contributors

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification.
Contributions of any kind are welcome!

Related project

Geoffrey 'C0ZEN' Testelin was originally a contributor of @actions/stale (see the contributors).
Due to slower cadence and different opinions over how the project should go forward, he decided to start from scratch on his own.
The main difference is that this project aims to provide the best stale action as possible based on consumers needs, even if it may be hard to provide such features. #noLimit - we do what we can to have an amazing stale action ;)

2.5.0

1 year ago

2.2.0

2 years ago

2.4.0

2 years ago

2.3.0

2 years ago

2.3.2

2 years ago

2.3.1

2 years ago

2.1.0

2 years ago

1.61.0

2 years ago

2.0.0

2 years ago

1.59.0

2 years ago

1.60.0

2 years ago

1.62.0

2 years ago

1.58.0

2 years ago

1.57.1

2 years ago

1.56.0

2 years ago

1.53.0

2 years ago

1.55.0

2 years ago

1.57.0

2 years ago

1.54.0

2 years ago

1.52.0

2 years ago

1.37.0

2 years ago

1.33.1

2 years ago

1.35.0

2 years ago

1.39.0

2 years ago

1.40.0

2 years ago

1.42.0

2 years ago

1.44.0

2 years ago

1.42.1

2 years ago

1.46.0

2 years ago

1.25.0

2 years ago

1.25.1

2 years ago

1.48.0

2 years ago

1.29.0

2 years ago

1.27.0

2 years ago

1.27.1

2 years ago

1.51.0

2 years ago

1.32.0

2 years ago

1.30.0

2 years ago

1.36.0

2 years ago

1.34.0

2 years ago

1.38.0

2 years ago

1.41.0

2 years ago

1.43.1

2 years ago

1.43.0

2 years ago

1.45.0

2 years ago

1.43.2

2 years ago

1.26.0

2 years ago

1.47.0

2 years ago

1.49.0

2 years ago

1.28.0

2 years ago

1.50.0

2 years ago

1.33.0

2 years ago

1.31.0

2 years ago

1.15.0

2 years ago

1.14.0

2 years ago

1.13.0

2 years ago

1.12.0

2 years ago

1.19.0

2 years ago

1.18.0

2 years ago

1.17.0

2 years ago

1.16.0

2 years ago

1.9.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.21.0

2 years ago

1.22.0

2 years ago

1.20.0

2 years ago

1.23.0

2 years ago

1.24.0

2 years ago

1.11.0

2 years ago

1.10.0

2 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago