From b4cd47d0b6cb24baddab2a600af4c6af7db18064 Mon Sep 17 00:00:00 2001 From: Shivam Goyal Date: Tue, 15 Nov 2022 12:24:08 +0530 Subject: [PATCH] AE-5276 | Stale GitHub Action (#4331) --- .github/workflows/stale.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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 0000000000..77cce64bac --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,20 @@ +name: Mark & Close stale PRs + +on: + workflow_dispatch: + schedule: + - cron: "30 4 * * MON" + +jobs: + stale: + runs-on: [ self-hosted ] + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-pr-stale: 70 + stale-pr-label: 'STALE' + stale-pr-message: "This PR hasn't seen activity in last 10 weeks! Should it be merged, closed, or worked on further? If you want to keep it open, post a comment or remove the `STALE` label – otherwise this will be closed in 2 weeks." + days-before-pr-close: 14 + close-pr-label: 'CLOSED BY STALE' + close-pr-message: 'This PR was closed due to 3 months of inactivity. Feel free to reopen it if still relevant.'