diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 000000000..24059e60d --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,28 @@ +name: Stale PR tracking + +on: + schedule: + - cron: '0 17 * * 1-5' # 9am UTC-8 on weekdays + +permissions: + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + if: github.repository == 'trinodb/trino-gateway' + steps: + - uses: actions/stale@v10.1.1 + with: + stale-pr-message: 'This pull request has gone a while without any activity. Ask for help on #trino-gateway-dev on Trino slack.' + days-before-pr-stale: 21 + days-before-pr-close: 21 + close-pr-message: 'Closing this pull request, as it has been stale for six weeks. Feel free to re-open at any time.' + stale-pr-label: 'stale' + exempt-pr-labels: 'stale-ignore' + start-date: '2020-01-01T00:00:00Z' + exempt-draft-pr: false + operations-per-run: 200 + # Avoid processing issues completely, see https://github.com/actions/stale/issues/1112 + days-before-issue-stale: -1 + days-before-issue-close: -1