From 2f3b8ad78dd974fecc78268a3c4c28a4fa84cf27 Mon Sep 17 00:00:00 2001 From: Jenly Date: Thu, 20 Jun 2024 18:16:34 +0800 Subject: [PATCH] actions --- .github/workflows/issues-stale.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/issues-stale.yml diff --git a/.github/workflows/issues-stale.yml b/.github/workflows/issues-stale.yml new file mode 100644 index 0000000..25a454c --- /dev/null +++ b/.github/workflows/issues-stale.yml @@ -0,0 +1,19 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '0 16 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + 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 5 days.' + days-before-stale: 30 + days-before-close: 5 + exempt-all-pr-milestones: true + exempt-issue-labels: 'help wanted' \ No newline at end of file