adjust
This commit is contained in:
37
.github/workflows/stale.yml
vendored
37
.github/workflows/stale.yml
vendored
@@ -2,13 +2,10 @@ name: "Manage Stale PRs"
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# Run every day at 1:30 AM UTC
|
|
||||||
- cron: '30 1 * * *'
|
- cron: '30 1 * * *'
|
||||||
# Allows you to run this workflow manually from the Actions tab for testing
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
# Required to allow the bot to label and close items
|
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
issues: write
|
issues: write
|
||||||
|
|
||||||
@@ -18,24 +15,34 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/stale@v9
|
- uses: actions/stale@v9
|
||||||
with:
|
with:
|
||||||
# --- Pull Request Settings ---
|
# Timing settings
|
||||||
|
|
||||||
# Days inactive before marking as stale (Your request: 30)
|
|
||||||
days-before-pr-stale: 21
|
days-before-pr-stale: 21
|
||||||
|
|
||||||
# Days inactive after labeling before closing (Your request: 10)
|
|
||||||
days-before-pr-close: 7
|
days-before-pr-close: 7
|
||||||
|
|
||||||
# The message posted when marking as stale
|
# The "Friendly Info" message (posted when 30 days of inactivity pass)
|
||||||
stale-pr-message: 'This Pull Request has been automatically marked as stale. It will be closed in 10 days if no further activity occurs.'
|
stale-pr-message: >
|
||||||
|
This Pull Request has been inactive for 21 days. To keep our
|
||||||
|
queue manageable, we mark older PRs as stale. This doesn't mean the
|
||||||
|
work isn't appreciated. It's often just a matter of timing or current
|
||||||
|
project focus.
|
||||||
|
|
||||||
# The message posted when closing
|
We’ll leave this open for another 7 days in case you have final
|
||||||
close-pr-message: 'This Pull Request was automatically closed because it has been stalled for 10 days with no activity.'
|
thoughts, but otherwise, it will be closed automatically to keep
|
||||||
|
things tidy.
|
||||||
|
|
||||||
# The label to apply (make sure this label exists, or the bot will create it)
|
# The closing message
|
||||||
|
close-pr-message: >
|
||||||
|
This Pull Request has been automatically closed. As mentioned before,
|
||||||
|
this doesn't mean the content is lost! Your work is archived here and
|
||||||
|
may be referenced or reused in the future when it fits the project
|
||||||
|
roadmap better.
|
||||||
|
|
||||||
|
If you feel this is still a priority, feel free to comment or reopen
|
||||||
|
when you're ready to continue. Thank you!
|
||||||
|
|
||||||
|
# Label settings
|
||||||
stale-pr-label: 'stale'
|
stale-pr-label: 'stale'
|
||||||
|
|
||||||
# --- Issue Settings (Disabled) ---
|
# Settings to ignore Issues
|
||||||
# Set to -1 to ignore Issues and only focus on PRs
|
|
||||||
days-before-issue-stale: -1
|
days-before-issue-stale: -1
|
||||||
days-before-issue-close: -1
|
days-before-issue-close: -1
|
||||||
Reference in New Issue
Block a user