From f3eef96f8cbe651fbe7d55fabf661dbd831d8e01 Mon Sep 17 00:00:00 2001 From: rajveer43 Date: Thu, 7 Sep 2023 15:43:17 +0530 Subject: [PATCH] Create stale.yml --- .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..a274e84ef --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,28 @@ +name: Mark stale pull requests + +on: + schedule: + - cron: "0 0 * * *" + +permissions: + pull-requests: write + +jobs: + stale: + if: github.repository_owner == 'shishirPatil' + + runs-on: ubuntu-latest + timeout-minutes: 2 + + steps: + - name: "Check PRs" + uses: actions/stale@v8 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-pr-message: 'This PR is stale because it has been open for 7 days with no activity.' + stale-pr-label: 'stale' + days-before-issue-stale: -1 + days-before-pr-stale: 30 + days-before-close: -1 + ascending: true + operations-per-run: 120 \ No newline at end of file