From 6d3821d2d9b584d8335e87a84c80d4b648e374b4 Mon Sep 17 00:00:00 2001 From: Laurent Chenay Date: Wed, 5 Oct 2022 21:50:19 +0200 Subject: [PATCH 1/3] Add stale configuration --- .github/stale.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/stale.yml diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 00000000..8cd217b9 --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,13 @@ +# Configuration for probot-stale - https://github.com/probot/stale + +daysUntilStale: 2 +daysUntilClose: false + +staleLabel: stale + +markComment: > + This pulls 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. + +only: pulls From 5513969c00aaab37632e168c63ef8d7567105c95 Mon Sep 17 00:00:00 2001 From: Laurent Chenay Date: Thu, 6 Oct 2022 16:21:19 +0200 Subject: [PATCH 2/3] Move to gha --- .github/stale.yml | 13 ------------- .github/workflows/stale.yml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 13 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 8cd217b9..00000000 --- a/.github/stale.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -daysUntilStale: 2 -daysUntilClose: false - -staleLabel: stale - -markComment: > - This pulls 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. - -only: pulls diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 00000000..c6c36fac --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,25 @@ +name: Close stale pull requests + +on: + schedule: + - cron: "0 15 * * *" + +permissions: + contents: write + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-pr-message: > + This pulls 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. + stale-pr-label: stale + days-before-stale: 2 + days-before-close: false \ No newline at end of file From f9f3b63de7824391dd5a2332c12fc946b0f32de4 Mon Sep 17 00:00:00 2001 From: Laurent Chenay Date: Tue, 11 Oct 2022 08:29:50 +0200 Subject: [PATCH 3/3] Fix value --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index c6c36fac..67a1663a 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -22,4 +22,4 @@ jobs: for your contributions. stale-pr-label: stale days-before-stale: 2 - days-before-close: false \ No newline at end of file + days-before-close: -1