Skip to content

ci: add stale bot workflow - #6290

Merged
ronag merged 1 commit into
mainfrom
add-stale-bot
Dec 2, 2026
Merged

ronag merged 1 commit into
mainfrom
add-stale-bot

Conversation

@mcollina

@mcollina mcollina commented Dec 1, 2026

Copy link
Copy Markdown
Member

Summary

Adds a GitHub Actions workflow that warns and then automatically closes stale issues and pull requests.

Behavior

Runs daily (cron) and can also be triggered manually (workflow_dispatch).

Phase Timing
Warning After 30 days (~1 month) of no activity, the item is labeled stale and a warning comment is posted.
Close After 7 more days of no activity, the item is closed automatically.
  • Any new activity (comment, commit, label) un-stales the item automatically (remove-stale-when-updated: true), so active work is not touched.
  • Exempt from auto-closing: Status: in-progress, Status: blocked, Status: help-wanted (issues only), and dependencies (Dependabot PRs).

Setup

This PR also relies on a stale label (color #cfd3d4) which I created on the repo so the workflow functions correctly. The actions/stale action cannot apply a label that does not exist.

Notes

  • Pinned to actions/stale@v10.3.0 by SHA, matching this repo's convention; Dependabot will bump it on its monthly schedule.
  • Timings (days-before-stale / days-before-close) and the messages are easy to tweak in .github/workflows/stale.yml.

Warn and then automatically close issues and pull requests that have had
no activity for a month. A warning is posted when an item becomes stale,
and it is closed 7 days later if there is still no activity.

Also creates the 'stale' label used by the workflow.
@codecov-commenter

codecov-commenter commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.80%. Comparing base (1094ae3) to head (ba1785d).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6290   +/-   ##
=======================================
  Coverage   91.80%   91.80%           
=======================================
  Files         113      113           
  Lines       44961    44961           
=======================================
  Hits        41278    41278           
  Misses       3683     3683           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ronag
ronag merged commit 3a0ef48 into main Dec 2, 2026
35 of 38 checks passed
@ronag
ronag deleted the add-stale-bot branch December 2, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants