mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 20:06:28 +01:00
53ce1691fa
# Summary This PR updates the triage bots schedule and raises the operations-per-run limit. # Details Previous actions have been implemented using a defensive approach to test the bots runtime and rate limits. At the moment the single run at 6 in the morning utilized `0,0066`% of our hourly GitHub API rate limit. With those settings we will be done with the currently open 800 issues in ~1/3 year. This PR updates the schedule to hourly and raises the API limit to 100 (3x of the default, out of 4500 API calls per hour, based of the stale action execution log). - Hourly will make the bot much more responsive (after the 800 issues have been ~~purged~~ processed). - A higher rate will allow the current state to be processed faster and will provide better response to higher workloads in the future. - The cache continues to handle any workload above 100 operations-per-run.
43 lines
1.8 KiB
YAML
43 lines
1.8 KiB
YAML
name: "Stale bot - Issue and PR triage"
|
|
|
|
on:
|
|
schedule:
|
|
# Run every hour
|
|
- cron: "0 * * * *"
|
|
workflow_dispatch: # Allow manual trigger
|
|
|
|
permissions:
|
|
actions: write
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
stale:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/stale@v9
|
|
with:
|
|
# --- Global settings ---
|
|
operations-per-run: 100
|
|
|
|
# --- Issue settings ---
|
|
days-before-issue-stale: 60
|
|
days-before-issue-close: 30
|
|
stale-issue-message: >
|
|
This issue has been marked as stale due to the lack of activity within the last 60 days.
|
|
If you think the issue is still relevant, leave a comment or let the issue get labeled as replicable by staff.
|
|
If there is no further activity in the next 30 days, this issue will be closed automatically.
|
|
close-issue-message: >
|
|
This issue has been closed automatically after 90 days of inactivity.
|
|
If you think this issue is still relevant, please reopen it or create a new issue.
|
|
exempt-issue-labels: "Bot Ignore,⛔ Lore Discussion,⛔ Maintainer Discussion,✔️ Issue Replicable"
|
|
|
|
# --- PR settings ---
|
|
days-before-pr-stale: 60
|
|
days-before-pr-close: -1 # Never auto-close PRs
|
|
stale-pr-message: >
|
|
This pull request has been marked as stale due to the lack of activity within the last 60 days.
|
|
If you are still working on this, please push your work or leave a comment.
|
|
Pull requests marked as stale won't be auto-closed but are at the discretion of staff to be closed at any point without further notice.
|
|
exempt-pr-labels: "Bot Ignore,⛔ Lore Discussion,⛔ Maintainer Discussion,✔️ Issue Replicable"
|