From 9f3e0707a53b64e97ce7d582e38b7f1d13ed9688 Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Fri, 5 Apr 2024 16:16:12 -0400 Subject: [PATCH] Run stale job hourly The stale job is currently limited to 100 API operations per run to protect against API limits and processing of each stale issue / PR take multiple API calls (commenting, adding or removing tags, closing etc). It seems like we could bump this up as we have more operations available, but the limit seems to be hourly. Instead, this makes the job run hourly, spreading the work. After an initial wave of marking and closing stale issues, this should keep the labeling "current" according to the "90 day to stale" configuration. --- .github/workflows/stale.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 92e6fc7e4124f..86928739a4ea4 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -2,8 +2,8 @@ name: 'Manage stale issues and PRs' on: schedule: - # Run daily at 2AM - - cron: '0 2 * * *' + # Run hourly + - cron: '0 * * * *' jobs: stale: @@ -16,7 +16,7 @@ jobs: days-before-stale: 90 # Number of days of inactivity before a stale issue or PR is closed days-before-close: 7 - # Number of issues or PRs to process per day + # API calls per run operations-per-run: 100 # --- Issues --- @@ -43,4 +43,4 @@ jobs: close-pr-message: > Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you! # PRs with these labels will never be considered stale - exempt-pr-labels: "Partner,React Core Team,Resolution: Backlog,Type: Bug,Type: Discussion,Type: Needs Investigation,Type: Regression,Type: Feature Request,Type: Enhancement" \ No newline at end of file + exempt-pr-labels: "Partner,React Core Team,Resolution: Backlog,Type: Bug,Type: Discussion,Type: Needs Investigation,Type: Regression,Type: Feature Request,Type: Enhancement"