update stale workflow

This commit is contained in:
fatedier 2020-09-25 15:00:41 +08:00
parent edf9596ca8
commit 1089eb9d22

View File

@ -1,8 +1,13 @@
name: "Close stale issues" name: "Close stale issues"
on: on:
schedule: schedule:
- cron: "0 0 * * *" - cron: "20 0 * * *"
workflow_dispatch:
inputs:
debug-only:
description: 'In debug mod'
required: false
default: 'false'
jobs: jobs:
stale: stale:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -10,10 +15,12 @@ jobs:
- uses: actions/stale@v3 - uses: actions/stale@v3
with: with:
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Mark this issue stale. Thank you for your feedback.' stale-issue-message: 'Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.'
stale-pr-message: 'Mark this pr stale. Thank you for your contribution.' stale-pr-message: 'Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.'
stale-issue-label: 'no-issue-activity' stale-issue-label: 'lifecycle/stale'
exempt-issue-labels: 'WIP,bug,doc,easy,enhancement,FrozenDueToAge,future,help wanted,Icebox,In Progress,need-usage-help,prososal,question,testing,todo' exempt-issue-labels: 'bug,doc,enhancement,future,prososal,question,testing,todo,easy,assigned'
stale-pr-label: 'no-pr-activity' stale-pr-label: 'lifecycle/stale'
exempt-pr-labels: 'WIP,bug,doc,easy,enhancement,FrozenDueToAge,future,help wanted,Icebox,In Progress,need-usage-help,prososal,question,testing,todo' exempt-pr-labels: 'bug,doc,enhancement,future,prososal,question,testing,todo,easy,assigned'
only-labels: 'invalid,duplicate,no plan' days-before-stale: 45
days-before-close: 10
debug-only: ${{ github.event.inputs.debug-only }}