From 8656374d0c5adbe4f93a9ac2d94d66c77b7d7eae Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Thu, 7 Oct 2021 05:33:54 +1000 Subject: [PATCH] Use stale action over deprecated workflow Signed-off-by: Jordan Borean --- .github/stale.yml | 7 ------- .github/workflows/stale.yml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 7 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 a11e868f..00000000 --- a/.github/stale.yml +++ /dev/null @@ -1,7 +0,0 @@ -# TODO: This is marked as deprecated - migrate to https://github.com/actions/stale -# https://github.com/marketplace/actions/stale-for-actions -daysUntilStale: 28 -daysUntilClose: 14 -staleLabel: stale -markComment: 'false' -only: pulls diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..47bbdb5a --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,23 @@ +workflow-dispatchname: Stale pull request handler +on: + schedule: + - cron: 0 0 * * * + +permissions: + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + + steps: + - uses: actions/stale@main + id: stale + with: + days-before-stale: -1 + days-before-pr-stable: 28 + days-before-pr-close: 14 + stale-pr-label: stale + stale-pr-message: >- + This pull request is stale because it has been open for 4 weeks with no activity. + Remove stale label or comment or this will be closed in 2 weeks.