Add stale issuse github workflow

This commit is contained in:
Sergey Bogatyrets 2022-02-13 12:27:33 +03:00
parent 76cd1a28e6
commit 67e665a2a5

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

@ -0,0 +1,26 @@
name: Stales
# yamllint disable-line rule:truthy
on:
schedule:
- cron: "0 * * * *"
workflow_dispatch:
jobs:
stale:
runs-on: ubuntu-latest
steps:
# The 90 day stale policy
# Used for:
# - Issues
- name: 90 days stale issues
uses: actions/stale@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 90
days-before-close: 7
remove-stale-when-updated: true
stale-issue-label: "stale"
exempt-issue-labels: "no-stale"
stale-issue-message: "This issue is stale because it has been open for 90 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale."