diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..fb1ea8f --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,28 @@ +name: Close inactive issues/PR + +on: + schedule: + - cron: '38 18 * * *' + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v5 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-issue-stale: 15 + days-before-issue-close: 15 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 15 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 15 days since being marked as stale." + days-before-pr-stale: 23 + days-before-pr-close: 7 + stale-pr-label: "stale" + stale-pr-message: "This PR is stale because it has been open for 23 days with no activity." + close-pr-message: "This PR was closed because it has been inactive for 7 days since being marked as stale."