Close stale items #29
This file contains 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 stale items | |
on: | |
schedule: | |
- cron: '3 6 * * *' | |
workflow_dispatch: | |
jobs: | |
close-stale-issues-prs: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
pull-requests: write | |
steps: | |
- name: Close stale issues and pull requests | |
uses: actions/stale@v9 | |
with: | |
days-before-stale: 30 | |
days-before-close: 7 | |
stale-issue-label: 'abandoned' | |
exempt-issue-labels: 'in-progress,help wanted,awaiting-release' | |
stale-issue-message: 'This issue is stale because it has been open for 30 days with no activity.' | |
close-issue-message: 'This issue was closed because it has been inactive for 7 days since being marked as stale.' | |
stale-pr-label: 'abandoned' | |
exempt-draft-pr: true | |
stale-pr-message: 'This pull request is stale because it has been open for 30 days with no activity.' | |
close-pr-message: 'This pull request was closed because it has been inactive for 7 days since being marked as stale.' | |
close-stale-q-a-discussions: | |
runs-on: ubuntu-latest | |
permissions: | |
discussions: write | |
steps: | |
- name: Close stale Q&A discussions | |
uses: steffen-karlsson/[email protected] | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
message: 'This discussion has automatically been closed due to inactivity. If this is still relevant, please open a new discussion.' | |
days-before-close: '30' | |
close-unanswered: 'true' | |
category: 'q-a' | |
close-reason: 'OUTDATED' | |
close-stale-ideas-discussions: | |
runs-on: ubuntu-latest | |
permissions: | |
discussions: write | |
steps: | |
- name: Close stale Ideas discussions | |
uses: steffen-karlsson/[email protected] | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
message: 'This discussion has automatically been closed due to inactivity. If this is still relevant, please open a new discussion.' | |
days-before-close: '30' | |
close-unanswered: 'true' | |
category: 'ideas' | |
close-reason: 'OUTDATED' |