From 00a533ef0c16f78e37d5e82089cb50b87bf62ab7 Mon Sep 17 00:00:00 2001 From: Khavin Shankar Date: Wed, 19 Oct 2022 13:26:20 +0530 Subject: [PATCH] feat: added github stale action (#3785) --- .github/workflows/stale.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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 00000000000..c728a414f5d --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,23 @@ +name: "Close stale issues and PRs" +on: + schedule: + - cron: "0 4 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v6 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-label: "stale" + stale-pr-label: "stale" + stale-issue-message: "Hi, @gigincg, @nihal467, @khavinshankar, @mathew-alex, @aparnacoronasafe, This issue has been automatically marked as stale because it has not had any recent activity." + stale-pr-message: "Hi, This pr has been automatically marked as stale because it has not had any recent activity. It will be automatically closed if no further activity occurs for 7 more days. Thank you for your contributions." + close-pr-message: "Hi, @gigincg, @nihal467, @khavinshankar, @mathew-alex, This pr has been automatically closed because it has not had any recent activity. Thank you for your contributions. Feel free to repopen the pr." + exempt-issue-labels: "blocked,waiting for related PR,waiting for back end,help wanted" + exempt-pr-labels: "tested,needs testing,need Review,waiting for related PR,waiting for back end,help wanted,blocked" + days-before-issue-stale: 14 + days-before-pr-stale: 7 + days-before-issue-close: -1 + days-before-pr-close: 7