Use actions/stale to close 'Awaiting OP Action' that have had no response in 7 days

This commit is contained in:
Hugo van Kemenade 2022-04-12 13:15:25 +03:00
parent 98e8e6df33
commit 4258246ed5

26
.github/workflows/stale.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Close stale issues
on:
schedule:
- cron: "10 0 * * *"
workflow_dispatch:
permissions:
issues: write
jobs:
stale:
if: github.repository_owner == 'python-pillow'
runs-on: ubuntu-latest
steps:
- name: "Check issues"
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
only-issue-labels: "Awaiting OP Action"
close-issue-message: "Closing this issue as no feedback has been received."
days-before-stale: -1
days-before-close: 7
labels-to-remove-when-unstale: "Awaiting OP Action"