Close inactive issues #15
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: | |
| schedule: | |
| - cron: "35 11 * * 5" | |
| env: | |
| DAYS_BEFORE_ISSUE_STALE: 30 | |
| DAYS_BEFORE_ISSUE_CLOSE: 14 | |
| jobs: | |
| close-issues: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/stale@v5 | |
| with: | |
| days-before-issue-stale: ${{ env.DAYS_BEFORE_ISSUE_STALE }} | |
| days-before-issue-close: ${{ env.DAYS_BEFORE_ISSUE_CLOSE }} | |
| stale-issue-label: "stale" | |
| stale-issue-message: | | |
| This issue is stale because it has been open for ${{ env.DAYS_BEFORE_ISSUE_STALE }} days with no activity. | |
| It will be closed if no further activity occurs. Let us know if you still need help! | |
| close-issue-message: | | |
| This issue is being closed because it has been stale for ${{ env.DAYS_BEFORE_ISSUE_CLOSE }} days with no activity. | |
| If you still need help, please feel free to leave comments. | |
| days-before-pr-stale: -1 | |
| days-before-pr-close: -1 | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} |