diff --git a/.github/workflows/close-stale-issues-prs.yml b/.github/workflows/close-stale-issues-prs.yml index ece149b0a4df7a6..8221fcc07325559 100644 --- a/.github/workflows/close-stale-issues-prs.yml +++ b/.github/workflows/close-stale-issues-prs.yml @@ -1,7 +1,7 @@ # Close stale issues and pull requests (uses actions/stale@v4 with GITHUB_TOKEN) on: schedule: - - cron: '0 0 * * 1' # weekly run: every Monday at 00:00 UTC + - cron: "0 0 * * 1" # weekly run: every Monday at 00:00 UTC workflow_dispatch: permissions: @@ -19,12 +19,14 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} # Messages for issues (mention the issue author) - stale-issue-message: 'Hello @{{author}}, this issue has been automatically marked as stale because it has not had recent activity. It will be auto-closed after and additional 10 days of inactivity. Please feel free to add a comment and we would be happy to continue working on it.' - close-issue-message: 'Hello @{{author}}, this issue has been automatically closed due to 45 days of inactivity. If needed, please reopen or comment and we can reevaluate your request.' + stale-issue-message: "Hey there, this issue has been automatically marked as stale because it has not had recent activity. It will be auto-closed after and additional 10 days of inactivity. If you need it open for longer, add the label `stale-exempt`." + close-issue-message: "Hey there, this issue has been automatically closed due to 45 days of inactivity. If needed, please reopen or comment and we can reevaluate your request." # Messages for pull requests (mention the PR author) - stale-pr-message: 'Hello @{{author}}, this pull request has been automatically marked as stale because it has not had recent activity. It will be auto-closed after and additional 10 days of inactivity. Please feel free to add a comment and we would be happy to continue working on it.' - close-pr-message: 'Hello @{{author}}, this pull request has been automatically closed due to 45 days of inactivity. If needed, please reopen or comment and we can reevaluate your request.' + stale-pr-message: "Hey there, this pull request has been automatically marked as stale because it has not had recent activity. It will be auto-closed after and additional 10 days of inactivity. If you need it open for longer, add the label `stale-exempt`." + close-pr-message: "Hey there, this pull request has been automatically closed due to 45 days of inactivity. If needed, please reopen or comment and we can reevaluate your request." # Time thresholds (adjust to your policy) days-before-stale: 35 - days-before-close: 10 - operations-per-run: 5 \ No newline at end of file + days-before-close: 15 + operations-per-run: 100 + exempt-pr-labels: stale-exempt + exempt-issues-labels: stale-exempt