Skip to content

Clean up stale issues in your repository with GitHub Actions!

License

Notifications You must be signed in to change notification settings

ApollusEHS-OSS/stale-issue-cleanup

 
 

Repository files navigation

"Stale Issue Cleanup" Action for GitHub Actions

This GitHub action warns and then closes issues and PRs without activity after a specified amount of time. It improves upon GitHub's original stale action by allowing the action to run only on issues that contain a specified label, and removing affecting labels once the issue sees new activity.

Usage

Add the following step to your workflow.

name: "Close stale issues"
uses: aws-actions/stale-issue-cleanup@v2
with:
    stale-issue-message: Stale issue message
    stale-pr-message: Stale issue message
    ancient-issue-message: Stale issue message
    
    stale-issue-label: closing-soon
    exempt-issue-label: awaiting-approval
    stale-pr-label: no-pr-activity
    exempt-pr-label: awaiting-approval
    response-requested-label: response-requested
    closed-for-staleness-label: closed-for-staleness
    
    days-before-stale: 4,
    days-before-close: 7,
    repo-token: ${{ secrets.GITHUB_TOKEN }}

NOTE: For stability, you should use the action with either an explicit tag, or commit SHA:

uses: aws-actions/stale-issue-cleanup@v2

Check out sample_workflow.yml for a complete example.

License Summary

This code is made available under the Apache-2.0 license. See LICENSE.

About

Clean up stale issues in your repository with GitHub Actions!

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 99.3%
  • Dockerfile 0.7%