Close Inactive Issues #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Close Inactive Issues | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| days-before-issue-stale: | |
| description: "Days before marking an issue as stale" | |
| required: false | |
| default: "120" | |
| days-before-issue-close: | |
| description: "Days before closing a stale issue" | |
| required: false | |
| default: "120" | |
| schedule: | |
| - cron: "30 1 * * *" | |
| permissions: | |
| issues: write | |
| pull-requests: read | |
| jobs: | |
| close_inactive_issues: | |
| name: Close Inactive Issues | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Run Stale Action | |
| uses: actions/stale@v9 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| days-before-issue-stale: ${{ github.event.inputs.days-before-issue-stale || 60 }} | |
| days-before-issue-close: ${{ github.event.inputs.days-before-issue-close || 60 }} | |
| stale-issue-label: "stale" | |
| exempt-issue-labels: "pinned,important,discussion" | |
| stale-issue-message: | | |
| This issue has been marked as stale because it has been open for ${{ github.event.inputs.days-before-issue-stale || 60 }} days with no activity. | |
| If this issue is still relevant, comment to keep it active. Otherwise, it will be closed in ${{ github.event.inputs.days-before-issue-close || 60 }} days. | |
| close-issue-message: | | |
| This issue has been closed because it remained inactive for ${{ github.event.inputs.days-before-issue-close || 60 }} days after being marked as stale. | |
| days-before-pr-stale: -1 | |
| days-before-pr-close: -1 |