mirror of https://github.com/usememos/memos.git
ci: extend stale workflow to cover PRs and improve clarity
- Add PR stale/close handling alongside issues - Reduce close grace period from 7 to 3 days - Add inline comments explaining the two-phase stale behavior - Rename workflow and job names for clarity
This commit is contained in:
parent
54d6d8c644
commit
2be4a52e1a
|
|
@ -1,18 +1,24 @@
|
|||
name: Stale Issues
|
||||
name: Close Stale
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 */8 * * *" # Every 8 hours
|
||||
- cron: "0 */8 * * *" # Every 8 hours
|
||||
|
||||
jobs:
|
||||
close-stale:
|
||||
name: Close Stale Issues
|
||||
name: Close Stale Issues and PRs
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- name: Close stale issues
|
||||
- name: Mark and close stale issues and PRs
|
||||
uses: actions/stale@v10.1.1
|
||||
with:
|
||||
# Issues: mark stale after 14 days of inactivity, close after 3 more days
|
||||
days-before-issue-stale: 14
|
||||
days-before-issue-close: 7
|
||||
days-before-issue-close: 3
|
||||
|
||||
# Pull requests: mark stale after 14 days of inactivity, close after 3 more days
|
||||
days-before-pr-stale: 14
|
||||
days-before-pr-close: 3
|
||||
|
|
|
|||
Loading…
Reference in New Issue