From 3688549eb812617ba38058bef8d35a9e5b894f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanpe=20Catala=CC=81n?= Date: Mon, 29 Aug 2022 08:48:23 +0200 Subject: [PATCH] Update Stale action --- .github/stale.yml | 10 ---------- .github/workflows/needs-attention.yml | 4 ++-- .github/workflows/stale.yml | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 12 deletions(-) delete mode 100644 .github/stale.yml create mode 100644 .github/workflows/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 2a61f249..00000000 --- a/.github/stale.yml +++ /dev/null @@ -1,10 +0,0 @@ -daysUntilStale: 5 -daysUntilClose: 3 -onlyLabels: - - awaiting user input -staleLabel: given up -markComment: > - 🤖 This issue has been automatically marked as stale because it has not had - recent activity. It will be closed if no further activity occurs. Thank you - for your contributions 🙂 -closeComment: false diff --git a/.github/workflows/needs-attention.yml b/.github/workflows/needs-attention.yml index ec3066c6..c5c25348 100644 --- a/.github/workflows/needs-attention.yml +++ b/.github/workflows/needs-attention.yml @@ -14,5 +14,5 @@ jobs: uses: hramos/needs-attention@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} - response-required-label: 'awaiting-user-info' - needs-attention-label: 'needs-triage' + response-required-label: 'awaiting user info' + needs-attention-label: 'needs triage' diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..3ff56f9b --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,18 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '30 5 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v4 + with: + close-issue-message: 'Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.' + stale-issue-message: '🤖 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions 🙂' + days-before-stale: 5 + days-before-close: 3 + enable-statistics: true + operations-per-run: 60 + only-labels: 'awaiting user input' \ No newline at end of file