Files
Rabby/.github/workflows/stale.yml
vvvvvv1vvvvvv 2bf9e95cd3 chore: add stale action to auto close stale prs (#2485)
* chore: add stale action to auto close stale prs

* fix: issue no need to auto closee

* chore: change to 30 days
2024-08-22 17:51:04 +08:00

23 lines
776 B
YAML

name: Close stale PRs
# run at 23:00 every day
on:
schedule:
- cron: "0 23 * * *"
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/stale@v9
with:
days-before-issue-stale: -1
days-before-issue-close: -1
stale-issue-label: "stale"
stale-issue-message: "This PR is stale because it has been open for 30 days with no activity. If there won't be any activity in the next 14 days, this PR will be closed automatically."
close-issue-message: "This PR was closed because it has been inactive for 14 days since being marked as stale."
days-before-pr-stale: 30
days-before-pr-close: 14
exempt-issue-labels: "keep"