diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..fb2ec4d --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,32 @@ +--- +name: "Stale issues and PRs handler" +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * *" + +permissions: read-all + +jobs: + stale: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: GitHubSecurityLab/actions-permissions/monitor@v1 + - uses: actions/stale@v9 + id: stale + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: | + This issue has gone 30 days without any activity and meets the project's definition of "stale". This will be auto-closed if there is no new activity over the next 30 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy! + stale-pr-message: | + This PR has gone 30 days without any activity and meets the project's definition of "stale". This will be auto-closed if there is no new activity over the next 30 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy! + stale-issue-label: "no-issue-activity" + stale-pr-label: "no-pr-activity" + days-before-stale: 30 + days-before-close: 30 + exempt-all-milestones: true + exempt-issue-labels: "not_stale" + exempt-pr-labels: "not_stale"