From ee665051b312e4a25204c9ef53205a2ef73a2d0e Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Tue, 14 Jul 2020 22:28:34 +0100 Subject: [PATCH] Update to use `actions/stale` instead of Stale Bot (#4143) --- .github/stale.yml | 29 --------------------------- .github/workflows/stale.yml | 40 +++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 29 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 26ceb6eb9..000000000 --- a/.github/stale.yml +++ /dev/null @@ -1,29 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Number of days of inactivity before an issue or PR is considered stale -daysUntilStale: 15 - -# Number of days of inactivity before a stale issue or PR is closed -daysUntilClose: 30 - -# Issues or PRs with these labels will never be considered stale -exemptLabels: - - up for grabs - -# Label to use when marking an issue or PR as stale -staleLabel: waiting - -# Comment to post when marking an issue or PR as stale -markComment: > - Hi all! This thread has not had any recent activity. - Are there any updates? Thanks! - -# Comment to post when closing a stale issue or PR -closeComment: > - Hi everyone. - This thread is being closed as there was no response to the previous prompt. - However, please leave a comment whenever you're ready to resume, - so the thread can be reopened. Thanks again! - -# Limit to only `issues` or `pulls` -only: pulls diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..ebbeb25be --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,40 @@ +name: 'Manage stale issues' + +on: + schedule: + - cron: '0 0 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + + steps: + + - name: Stale Bot + uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + + # Number of days of inactivity before an issue or PR is considered stale + days-before-stale: 15 + + # Number of days of inactivity before a stale issue or PR is closed + days-before-close: 30 + + # Issues or PRs with these labels will never be considered stale + exempt-pr-labels: up for grabs + + # Label to use when marking an issue or PR as stale + stale-pr-label: waiting + + # Comment to post when marking an issue or PR as stale + stale-pr-message: | + Hi all! This thread has not had any recent activity. + Are there any updates? Thanks! + + # Comment to post when closing a stale issue or PR + close-pr-message: | + Hi everyone. + This thread is being closed as there was no response to the previous prompt. + However, please leave a comment whenever you're ready to resume, + so the thread can be reopened. Thanks again!