diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..0596821 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,48 @@ +name: Stale Issues and PRs + +on: + schedule: + - cron: "0 0 * * 1" # Weekly on Monday at midnight UTC + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + name: Manage Stale Issues and PRs + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/stale@v9 + with: + # Issue configuration + days-before-issue-stale: 60 + days-before-issue-close: 14 + stale-issue-label: stale + stale-issue-message: > + This issue has been automatically marked as stale because it has + not had any activity in the last 60 days. It will be closed in + 14 days if no further activity occurs. If this issue is still + relevant, please leave a comment or remove the stale label. + Thank you for your contributions! + close-issue-message: > + This issue has been automatically closed due to inactivity. + If you believe this issue is still relevant, please feel free + to reopen it with updated context. Thank you! + exempt-issue-labels: "priority: high,help wanted" + + # PR configuration + days-before-pr-stale: 30 + days-before-pr-close: 7 + stale-pr-label: stale + stale-pr-message: > + This pull request has been automatically marked as stale because + it has not had any activity in the last 30 days. It will be + closed in 7 days if no further activity occurs. If this PR is + still a work in progress, please leave a comment or push new + changes to keep it active. Thank you for your contributions! + close-pr-message: > + This pull request has been automatically closed due to + inactivity. If you would like to continue this work, please + feel free to reopen it or create a new pull request. Thank you!