diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index d66a138..2e62a6e 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -1,10 +1,30 @@ name: "Close Stale PRs" + on: - workflow_call: + workflow_dispatch: schedule: - cron: "30 1 * * *" +env: + days-before-pr-stale: 20 + days-before-pr-close: 10 + operations-per-run: 100 + +permissions: + issues: write + pull-requests: write + jobs: stale: - uses: embrace-io/actions/.github/workflows/stale.yaml@master - secrets: inherit + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + exempt-pr-labels: "dependencies" + stale-issue-label: "stale" + stale-pr-label: "stale" + stale-pr-message: "This PR is stale because it has been open ${{ env.days-before-pr-stale }} days with no activity. Remove stale label or comment or this PR will be closed in ${{ env.days-before-pr-close }} days." + close-pr-message: "This PR was closed due to inactivity." + days-before-pr-stale: ${{ env.days-before-pr-stale }} + days-before-pr-close: ${{ env.days-before-pr-close }} + operations-per-run: ${{ env.operations-per-run }}