From 1ca423f35d7593f2b53c115666c7cdcb45007fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oscar=20S=C3=B6derlund?= Date: Mon, 1 Apr 2024 12:07:41 +0200 Subject: [PATCH] ci: add stale workflow --- .github/workflows/stale.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 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 00000000..2c14579d --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,24 @@ +name: Stale + +permissions: + issues: write + pull-requests: write + +on: + workflow_dispatch: + schedule: + # At 08:00 on every Monday. + - cron: "0 8 * * 1" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + days-before-pr-stale: 180 + days-before-pr-close: 14 + stale-pr-message: "This PR has been open for **180 days** with no activity. Remove the stale label or add a comment or it will be closed in **14 days**." + days-before-issue-stale: 365 + days-before-issue-close: -1 + stale-issue-message: "This issue has been open for **365 days** with no activity. Marking as stale."