From 35a71d3067e1e6aa5149159d78241a310506fe3e Mon Sep 17 00:00:00 2001 From: alexkar598 <25136265+alexkar598@users.noreply.github.com> Date: Mon, 18 May 2020 22:03:49 -0400 Subject: [PATCH] Auto close stale PRs --- .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 000000000000..93727b6d0203 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,24 @@ +name: Mark stale issues and pull requests + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + stale: + + runs-on: ubuntu-latest + + steps: + - name: Close Stale Issues + uses: actions/stale@v3.0.3 + with: + repo-token: "{{secrets.GITHUB_TOKEN}}" + # The message to post on the pr when tagging it. If none provided, will not mark pull requests stale. + stale-pr-message: "This pull request has been inactive for 5 days, it will be closed in 3 days if there still is no activity." + days-before-stale: 5 + days-before-close: 3 + stale-pr-label: "Stale" + only-labels: "Awaiting - Action - Author" + operations-per-run: 30 + remove-stale-when-updated: true