Create stale-issues.yml
This commit is contained in:
committed by
GitHub
parent
e8c28574ba
commit
be70ea702a
@@ -0,0 +1,31 @@
|
|||||||
|
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
|
||||||
|
#
|
||||||
|
# You can adjust the behavior by modifying this file.
|
||||||
|
# For more information, see:
|
||||||
|
# https://github.com/actions/stale
|
||||||
|
name: Mark stale issues and pull requests
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '45 14 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
stale:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/stale@v3
|
||||||
|
with:
|
||||||
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
days-before-stale: -1
|
||||||
|
days-before-issue-stale: 30
|
||||||
|
days-before-close: -1
|
||||||
|
days-before-issue-close: 45
|
||||||
|
stale-issue-message: 'The issue is tagged as "stale issue" due to no activity in 30 days. If there is no activity for 15 more days, the issue will be closed.'
|
||||||
|
stale-issue-label: 'stale issue'
|
||||||
|
close-issue-message: 'Closing this issue due to no activity in last 45 days'
|
||||||
|
|
||||||
Reference in New Issue
Block a user