From e9dd7a4420f69ad73c7b1d8235c10ca28c03b4ec Mon Sep 17 00:00:00 2001 From: Federico Grandi Date: Fri, 21 Aug 2020 14:14:45 +0200 Subject: [PATCH] ci: add "stale" workflow --- .github/workflows/stale.yml | 21 +++++++++++++++++++++ 1 file changed, 21 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..06c563a --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,21 @@ +name: 'Close stale issues and PRs' +on: + schedule: + - cron: '0 0 * * *' + workflow_dispatch: + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue is being marked as "stale" because it has been open 30 days with no activity. Remove the "stale" label or comment, otherwise this will be closed in 5 days.' + stale-issue-label: stale + exempt-issue-labels: pinned + stale-pr-message: 'This PR is being marked as "stale" because it has been open 30 days with no activity. Remove the "stale" label or comment, otherwise this will be closed in 5 days.' + stale-pr-label: stale + exempt-pr-labels: pinned + days-before-stale: 30 + days-before-close: 5