From 4dc8768d765fac6018b22e59f48146c9e7f42fb8 Mon Sep 17 00:00:00 2001 From: Priyankar Pal <88102392+priyankarpal@users.noreply.github.com> Date: Tue, 23 May 2023 00:33:32 +0530 Subject: [PATCH] Create stale-issue.yml --- .github/workflows/stale-issue.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/stale-issue.yml diff --git a/.github/workflows/stale-issue.yml b/.github/workflows/stale-issue.yml new file mode 100644 index 000000000..5ff20603d --- /dev/null +++ b/.github/workflows/stale-issue.yml @@ -0,0 +1,29 @@ +name: "Close Stale Issues" +on: + schedule: + - cron: '0 8 * * *' + +permissions: + # All other permissions are set to none + issues: write + +jobs: + stale: + runs-on: ubuntu-22.04 + steps: + - uses: actions/stale@v4.1.1 + with: + stale-issue-label: 'stale' + exempt-issue-labels: 'not-stale' + days-before-issue-stale: 3 + days-before-issue-close: 1 + # Only close stale issues, leave PRs alone + days-before-pr-stale: -1 + stale-issue-message: > + This issue has been automatically marked as stale because it has been open for 3 days + with no activity. It will be closed in next 1 days if no further activity occurs. To + permanently prevent this issue from being considered stale, add the label 'not-stale', + but commenting on the issue is preferred when possible. + close-issue-message: > + This issue has been closed because it has not received any activity in the last 1 days + since being marked as 'stale'