diff --git a/.github/workflows/defaultLabels.yml b/.github/workflows/defaultLabels.yml index 13e92feb..dc37a63b 100644 --- a/.github/workflows/defaultLabels.yml +++ b/.github/workflows/defaultLabels.yml @@ -7,24 +7,22 @@ on: jobs: label-issues: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0 - name: Setting issue as idle + name: Mark idle issues and PRs and close inactive ones with: repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'This issue is idle because it has been open for 14 days with no activity.' + stale-issue-message: 'This issue is idle after 60 days with no activity. It will be closed in 14 days if there is no further activity.' stale-issue-label: 'idle' - days-before-stale: 14 - days-before-close: -1 - operations-per-run: 100 - exempt-issue-labels: 'backlog' - - - uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0 - name: Setting PR as idle - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-pr-message: 'This PR is idle because it has been open for 14 days with no activity.' + close-issue-message: 'Closing this issue after 14 more days with no activity since it was marked idle.' + stale-pr-message: 'This PR is idle after 60 days with no activity. It will be closed in 14 days if there is no further activity.' stale-pr-label: 'idle' - days-before-stale: 14 - days-before-close: -1 + close-pr-message: 'Closing this PR after 14 more days with no activity since it was marked idle.' + days-before-stale: 60 + days-before-close: 14 + remove-stale-when-updated: true operations-per-run: 100 + exempt-issue-labels: 'backlog'