mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Add stale bot for old PRs (#1186)
* 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>
This commit is contained in:
parent
18d1017325
commit
aadf5f874b
18
.github/workflows/stale.yaml
vendored
Normal file
18
.github/workflows/stale.yaml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
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
|
||||
Loading…
Reference in a new issue