From 338dcbdd5b3a0cdffcf18af8d1700e3e3daf4062 Mon Sep 17 00:00:00 2001 From: Dmitry Murzinov Date: Tue, 9 May 2023 17:29:44 +0300 Subject: [PATCH] add workflow to Identify and close stale issues and PRs --- .github/workflows/stale.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 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 0000000..4a8746d --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,36 @@ +name: 'Identify and close stale issues and PRs' + +on: + workflow_dispatch: + schedule: + - cron: '15 1 * * *' + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + stale-issue-message: + This issue has been identified as stale because it + has gone 14 days with no activity. + + The issue will be closed in 5 days. If this is incorrect, + simply comment on the issue, or remove the stale label. + stale-pr-message: + This pull request has been identified as stale because + it has gone 14 days with no activity. + + The pull request will be closed in 5 days. If this is incorrect, + simply comment on the PR, remove the label, or merge the PR. + + Reminder, once a PR is approved, and checks have passed, + you **can merge it yourself.** + days-before-stale: 14 + days-before-close: 5 + exempt-issue-labels: "keep-me" + exempt-pr-labels: "keep-me"