From 0296b95d5488d870b0ca9a9560a8035be71bba9d Mon Sep 17 00:00:00 2001 From: Rachit Nigam Date: Wed, 9 Oct 2024 16:04:50 -0400 Subject: [PATCH] add stale action for processing PRs and Issues (#2301) --- .github/workflows/stale.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..739fd4d5b --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,28 @@ +name: "Mark stale issues and pull requests" + +on: + schedule: + - cron: "0 0 * * *" # Runs every day at midnight + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + operations-per-run: 30 + remove-stale-when-updated: true + # Pull request configuration + days-before-stale-pr: 14 + days-before-stale-pr-draft: 180 + days-before-close-pr: 7 + stale-pr-message: "This pull request has been marked as stale due to inactivity." + close-pr-message: "Closing this pull request due to inactivity." + stale-pr-label: "S: Stale" + # Issue configuration: We only operate on issues that are waiting for a response + days-before-stale-issue: 14 + days-before-close-issue: 14 + only-issue-labels: "S: Awaiting response" + stale-issue-message: "Please follow-up with this issue and provide more information on how to close it or make progress on it" + close-issue-message: "Closing this issue due to inactivity." + stale-issue-label: "S: Stale" \ No newline at end of file