diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index b210e3be..00000000 --- a/.github/stale.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 30 -# Number of days of inactivity before a stale Issue or Pull Request is closed -daysUntilClose: 15 -# Comment to post when marking as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as stale because it has no - recent activity. It will be closed if no further activity occurs. Thank you. -# Comment to post when removing the stale label. Set to `false` to disable -unmarkComment: false -closeComment: > - Closing as stale. Please reopen if you'd like to work on this further. -limitPerRun: 30 -# Limit to only `issues` or `pulls` -only: issues diff --git a/.github/workflows/stale_handler.yml b/.github/workflows/stale_handler.yml index 1c6677ef..144e4a4e 100644 --- a/.github/workflows/stale_handler.yml +++ b/.github/workflows/stale_handler.yml @@ -8,22 +8,32 @@ on: jobs: stale: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write steps: - uses: actions/stale@v10 with: + repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: > - "This issue is being marked as stale due to inactivity. Remove label or - comment to prevent closure in 5 days." + This issue is being marked as stale due to inactivity. Remove the stale label + or comment to prevent closure in 5 days. stale-pr-message: > - "This PR is being marked as stale due to inactivity. Remove label or - comment to prevent closure in 5 days." + This PR is being marked as stale due to inactivity. Remove the stale label + or comment to prevent closure in 5 days. close-issue-message: > - "This issue is being closed because it has been marked as - stale for 5 days with no further activity." + This issue is being closed because it has been marked as stale for 5 days + with no further activity. close-pr-message: > - "This PR is being closed because it has been marked as - stale for 5 days with no further activity." + This PR is being closed because it has been marked as stale for 5 days + with no further activity. days-before-issue-stale: 25 days-before-issue-close: 5 days-before-pr-stale: 40 days-before-pr-close: 5 + operations-per-run: 100 + exempt-all-assignees: true + exempt-all-milestones: true + exempt-draft-pr: true + exempt-issue-labels: 'pinned,security' + exempt-pr-labels: 'pinned,security'