From dc744fb3e4e960d89f2d87e48989477f0d41ddda Mon Sep 17 00:00:00 2001 From: tejas bhuwania Date: Thu, 9 Jul 2020 22:31:40 +0800 Subject: [PATCH 1/3] Add github action for closing stale PRs --- .github/workflows/stale.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..6a729c7ef6 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,28 @@ +name: Close Stale Pull Requests + +on: + schedule: + # Runs every minute + - cron: '* * * * *' + +jobs: + stale: + runs-on: ubuntu-18.04 + + steps: + - uses: actions/stale@v3.0.7 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 30 + days-before-close: 7 + remove-stale-when-updated: 'True' + stale-pr-label: 'Stale' + stale-pr-message: | + Hi, + + We are going to mark this PR as stale because it has been inactive for the past 30 days. + + If no further activity occurs within the following 7 days, it will be automatically closed so that others can take up the issue. + If you are still working on this PR, please make a follow-up commit within 7 days and leave a comment to remove the stale label. + + Do let us know if you are stuck so that we can help you!' From 1de0d0072a32a77e4b202aca150800e0f9bc04dc Mon Sep 17 00:00:00 2001 From: Tejas Bhuwania <35946746+Tejas2805@users.noreply.github.com> Date: Thu, 9 Jul 2020 22:36:40 +0800 Subject: [PATCH 2/3] Add blank line end of file --- .github/workflows/stale.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 6a729c7ef6..f1d18fca8d 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -26,3 +26,4 @@ jobs: If you are still working on this PR, please make a follow-up commit within 7 days and leave a comment to remove the stale label. Do let us know if you are stuck so that we can help you!' + From e9e484e37ddedbab62e5e1b1b82eadca90b04714 Mon Sep 17 00:00:00 2001 From: Tejas Bhuwania <35946746+Tejas2805@users.noreply.github.com> Date: Sun, 19 Jul 2020 07:15:45 +0800 Subject: [PATCH 3/3] Make it run once a day --- .github/workflows/stale.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index f1d18fca8d..999bd5f3c0 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -2,8 +2,8 @@ name: Close Stale Pull Requests on: schedule: - # Runs every minute - - cron: '* * * * *' + # Runs every day at 00:00 UTC + - cron: '0 0 * * *' jobs: stale: