diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml new file mode 100644 index 00000000..34c6366b --- /dev/null +++ b/.github/workflows/stale.yaml @@ -0,0 +1,39 @@ +name: Close Stale Issues and PRs + +on: + schedule: + - cron: '0 14 * * *' + workflow_dispatch: + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v9 + with: + days-before-stale: 60 + days-before-close: 7 + stale-issue-label: stale + stale-pr-label: stale + stale-issue-message: > + This issue has been automatically marked as stale because it has not + had recent activity. It will be closed in 7 days if no further + activity occurs. If you believe this issue is still relevant, please + comment to keep it open. + stale-pr-message: > + This pull request has been automatically marked as stale because it + has not had recent activity. It will be closed in 7 days if no + further activity occurs. If you believe this PR is still relevant, + please comment or push new changes to keep it open. + close-issue-message: > + This issue was closed because it has been stale for 7 days with no + activity. Feel free to reopen if this is still relevant. + close-pr-message: > + This pull request was closed because it has been stale for 7 days + with no activity. Feel free to reopen if this is still relevant. + exempt-issue-labels: pinned,security,bug + exempt-pr-labels: pinned,security