From 298f9aa63dbd6b077b3448b42668fc3800d80a7b Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Mon, 23 Dec 2019 17:55:18 +0100 Subject: [PATCH] Actions: add stale to auto close old stalled PR --- .github/workflows/stale.yml | 15 +++++++++++++++ 1 file changed, 15 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 0000000..c2781fe --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,15 @@ +name: "Close stale PR" +on: + schedule: + - cron: "0 0 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v1 + with: + repo-token: ${{ secrets.FLATHUBBOT_TOKEN }} + stale-pr-message: "This PR hasn't received any updates in a year and will be automatically closed in 14 days. Feel free to re-open it if you plan to continue working on that pull request or think it deserves attention from Flathub admins" + days-before-stale: 365 + days-before-close: 14