Add stable check for issues and PRs. (#219)

Signed-off-by: xuezhaojun <zxue@redhat.com>
This commit is contained in:
xuezhaojun
2023-07-13 23:18:28 +08:00
committed by GitHub
parent 320098e78a
commit 41f430b077

16
.github/workflows/stable.yaml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *' # Runs at 1:30am every day
# `stable` label will be added to issues and PRs that have been inactive for 60 days
# Close stale issues and PRs after 7 days of inactivity
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Message to comment on stale issues. If none provided, will not mark issues stale'
stale-pr-message: 'Message to comment on stale PRs. If none provided, will not mark PRs stale'