mirror of
https://github.com/RabbyHub/Rabby.git
synced 2026-04-17 03:01:32 -04:00
* chore: add stale action to auto close stale prs * fix: issue no need to auto closee * chore: change to 30 days
23 lines
776 B
YAML
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" |