mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
* Add stale bot for old PRs * Update message * Update .github/workflows/stale.yaml Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com> * Fix stale workflow * Update .github/workflows/stale.yaml Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com> --------- Co-authored-by: 罗泽轩 <spacewanderlzx@gmail.com>
19 lines
490 B
YAML
19 lines
490 B
YAML
name: "Maintenance: Close Stale PRs"
|
|
on:
|
|
schedule:
|
|
- cron: "30 1 * * *"
|
|
|
|
permissions:
|
|
pull-requests: "write"
|
|
|
|
jobs:
|
|
stale:
|
|
runs-on: "ubuntu-latest"
|
|
if: github.repository_owner == 'tj'
|
|
steps:
|
|
- uses: "actions/stale@v9"
|
|
with:
|
|
close-pr-message: "This PR was closed because it has been stalled for 365 days with no activity. Feel free to make a new PR if you wish to continue"
|
|
days-before-pr-stale: 350
|
|
days-before-pr-close: 15
|