Commit 9dbe34d7 authored by liziwl's avatar liziwl
Browse files

add close issue flow

parent 80fec89e
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
name: 'Close stale issues and PRs'
on:
  schedule:
    - cron: '30 1 * * *'

jobs:
  stale:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/stale@v7
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.'
          close-issue-message: 'This issue was closed because it has been stalled for 3 days with no activity.'
          days-before-stale: 7
          days-before-close: 3
          any-of-labels: 'needs-more-info,needs-demo,answered,fixed'