diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..7fbe027 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,34 @@ +name: Mark Stale Issues and PRs + +on: + schedule: + - cron: "0 1 * * *" + workflow_dispatch: + +permissions: + issues: write + pull-requests: write + +jobs: + stale: + runs-on: ubuntu-latest + + steps: + - name: Mark stale issues and PRs + uses: actions/stale@9d5a0b4d7a0d8b4f2c5e7d5b8a6c2a3f7a2b1c9d + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + + days-before-stale: 30 + days-before-close: 7 + + stale-issue-message: > + This issue has been automatically marked as stale due to inactivity. + It will be closed if no further activity occurs within 7 days. + + stale-pr-message: > + This pull request has been automatically marked as stale due to inactivity. + It will be closed if no further activity occurs within 7 days. + + stale-issue-label: stale + stale-pr-label: stale