diff --git a/.github/workflows/stale-actions.yml b/.github/workflows/stale-actions.yml new file mode 100644 index 00000000..bf0299ae --- /dev/null +++ b/.github/workflows/stale-actions.yml @@ -0,0 +1,29 @@ +name: "Mark or close stale issues and PRs" +on: + schedule: + - cron: "00 10 * * *" + +permissions: read-all + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0 + 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 because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 7 days" + stale-pr-message: "This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 7 days" + close-issue-message: "This issue was automatically closed because of stale in 7 days" + close-pr-message: "This PR was automatically closed because of stale in 7 days" + stale-pr-label: "stale" + stale-issue-label: "stale" + exempt-issue-labels: "waiting-for-triage,bug,enhancement,good first issue,help wanted,pending,question,work-in-progress" + exempt-pr-labels: "waiting-for-triage,bug,enhancement,pending" + exempt-all-assignees: true + exempt-all-milestones: true