diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index a6f78c1dcf..e728472ec4 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -7,13 +7,21 @@ on: jobs: stale: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - uses: actions/stale@main id: stale with: - stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days' - days-before-stale: 30 - days-before-close: 5 + ascending: true + close-issue-message: 'Issue closed due to inactivity.' + close-pr-message: 'Pull request closed due to inactivity.' + days-before-close: 14 + days-before-stale: 60 exempt-issue-labels: 'blocked,must,should,keep' + operations-per-run: 100 + stale-issue-message: 'This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days' + stale-pr-message: 'This pull request is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days' - name: Print outputs run: echo ${{ join(steps.stale.outputs.*, ',') }}