diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 0000000..a05b1ce --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,21 @@ +##################################### +# DO NOT EDIT DIRECTLY. # +# This file is managed by Terraform # +##################################### + +name: 'Close stale PRs' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + stale-pr-message: 'This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.' + close-pr-message: 'This PR was closed because it has been stalled for 7 days with no activity.' + days-before-pr-stale: 30 + days-before-pr-close: 7 + exempt-pr-labels: 'dependencies,security'