From 165bee901cc706f7f03801e9971fa80b79f9276e Mon Sep 17 00:00:00 2001 From: yanyiwu Date: Sat, 7 Sep 2024 20:58:52 +0800 Subject: [PATCH] [github/actions] stale issues --- .github/workflows/stale-issues.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/stale-issues.yml diff --git a/.github/workflows/stale-issues.yml b/.github/workflows/stale-issues.yml new file mode 100644 index 00000000..ff88973a --- /dev/null +++ b/.github/workflows/stale-issues.yml @@ -0,0 +1,24 @@ +name: Close Stale Issues + +on: + schedule: + - cron: '0 13 * * *' # Run daily + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue has not been updated for over 5 years and will be marked as stale. If the issue still exists, please comment or update the issue, otherwise it will be closed after 7 days.' + close-issue-message: 'This issue has been automatically closed due to inactivity. If the issue still exists, please reopen it.' + days-before-issue-stale: 1825 + days-before-issue-close: 7 + stale-issue-label: 'Stale' + exempt-issue-labels: 'pinned,security' + operations-per-run: 100