From 81a918b8589c6779d1b985f742b010d8b1de6df7 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Mon, 24 Feb 2020 11:00:20 -0800 Subject: [PATCH] workflow: add stale action Setup to mark stale after 300 days, and close 30 days after marked stale unless the issue is commented on, or has the `stale` label removed. The 'never stale' label can be used to exempt an issue from ever being considered stale. Fixes: https://github.com/nodejs/build/issues/2190 --- .github/workflows/stale.yml | 17 +++++++++++++++++ 1 file changed, 17 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 000000000..524a04d78 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,17 @@ +name: "Close stale issues" +on: + schedule: + - cron: "0 0 * * *" + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days' + stale-issue-label: 'stale' + exempt-issue-label: 'never stale' + days-before-stale: 300 + days-before-close: 30