From 4d0706551b9ded28d1fa83d2b70a3b92d525335a Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Wed, 7 Jun 2023 00:01:49 +0200 Subject: [PATCH] Use Stale bot to close issues (#28806) * Use Stale bot to close issues * Update .github/workflows/stale.yml Co-authored-by: Adam Johnson * update action --------- Co-authored-by: Adam Johnson --- .github/workflows/stale.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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 0000000000..a1a4a58e3f --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,31 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v6 + with: + stale-issue-message: 'This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.' + only-labels: 'category:question' + days-before-issue-stale: 28 + days-before-pr-stale: -1 + days-before-close: 14 + - uses: actions/stale@v6 + with: + stale-issue-message: 'This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.' + only-labels: 'requires:repro' + days-before-issue-stale: 28 + days-before-pr-stale: -1 + days-before-close: 14 + - uses: actions/stale@v6 + with: + close-issue-message: "This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 60 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment." + ony-of-labels: 'category:new-port' + close-issue-label: 'new-port-unresolved' + days-before-issue-stale: 60 + days-before-pr-stale: -1 + days-before-close: 14