From 9c93ce7401fe83552fa8f7d147ace0445fe38191 Mon Sep 17 00:00:00 2001 From: Nikos Koukis Date: Thu, 15 Aug 2024 09:36:33 +0300 Subject: [PATCH] Add stale-prs.yml github workflow --- .github/pull_request_template.md | 7 ++++--- .github/workflows/stale-issues-prs.yml | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/stale-issues-prs.yml diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index a68615b..b9a8ce5 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -12,10 +12,11 @@ Please delete options that are not relevant. - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) -- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) +- [ ] Breaking change (fix or feature that would cause existing functionality to + not work as expected) - [ ] This change requires a documentation update -# How Has This Been Tested? +## How Has This Been Tested? Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your @@ -24,7 +25,7 @@ test configuration - [ ] Test A - [ ] Test B -# Checklist: +## Checklist - [ ] My code follows the style guidelines of this project - [ ] I have commented my code, particularly in hard-to-understand areas diff --git a/.github/workflows/stale-issues-prs.yml b/.github/workflows/stale-issues-prs.yml new file mode 100644 index 0000000..6735fb0 --- /dev/null +++ b/.github/workflows/stale-issues-prs.yml @@ -0,0 +1,23 @@ +name: "Close stale issues and PRs" + +permissions: + contents: write # only for delete-branch option + issues: write + pull-requests: write + +on: + schedule: + - cron: "0 15 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' + # stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.' + close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.' + + days-before-stale: 60 + days-before-close: 5