diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 3da1b17..cab3e42 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,21 +7,22 @@ name: Mark stale issues and pull requests on: schedule: - - cron: '40 13 * * *' + - cron: "30 1 * * *" jobs: - stale: - + close-issues: runs-on: ubuntu-latest permissions: issues: write pull-requests: write - steps: - - uses: actions/stale@v5 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: 'Stale issue message' - stale-pr-message: 'Stale pull request message' - stale-issue-label: 'no-issue-activity' - stale-pr-label: 'no-pr-activity' + - uses: actions/stale@v5 + with: + days-before-issue-stale: 30 + days-before-issue-close: 14 + stale-issue-label: "stale" + stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." + days-before-pr-stale: -1 + days-before-pr-close: -1 + repo-token: ${{ secrets.GITHUB_TOKEN }}