From e5b084a485bbb70afd957bb290736d9cb75f5828 Mon Sep 17 00:00:00 2001 From: Avelino Date: Wed, 16 Sep 2020 15:28:57 -0300 Subject: [PATCH] create stale PR workflow Signed-off-by: Avelino --- .github/workflows/stale.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..b69d2d7d --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,22 @@ +name: PR auto close, if you stay more than 8 days open + +on: + workflow_dispatch: + schedule: + - cron: '*/15 * * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-pr-message: > + This PR has been automatically marked as closed because it has not had + recent activity. They will wait 15 days for your interaction, after + that the PR will be closed. + Please read more in https://github.com/avelino/awesome-go/blob/master/CONTRIBUTING.md + stale-pr-label: 'stale' + days-before-stale: 15 + days-before-close: 7