From 38e3008a1d9246e7f095a9aed89df09e1d697359 Mon Sep 17 00:00:00 2001 From: json Date: Mon, 13 May 2024 16:53:30 +0800 Subject: [PATCH] [20366] Updated Auto Stale PR logic to reflect correct restrictions --- .github/workflows/auto_stale_pr.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/auto_stale_pr.yml diff --git a/.github/workflows/auto_stale_pr.yml b/.github/workflows/auto_stale_pr.yml new file mode 100644 index 00000000..f2fd6d08 --- /dev/null +++ b/.github/workflows/auto_stale_pr.yml @@ -0,0 +1,14 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: 'This issue is stale because it has been open 5 days with no activity. Remove stale label or comment or this will be closed in 2 days.' + days-before-stale: 5 + days-before-close: 2 \ No newline at end of file