Skip to content

Conversation

@rohanKanojia
Copy link
Contributor

@rohanKanojia rohanKanojia commented Nov 5, 2025

What does this PR do?

This PR is part of DevTools Week.

  • Adds a new workflow file:
    .github/workflows/stale.yml
  • Uses actions/stale@v10
  • Schedules daily runs at 02:00 UTC
  • Automatically handles stale labeling, commenting, and closing issues and pull requests

It aims to replace the outdated repository https://github.com/che-incubator/chestnut-lite which is not working since January (see Chestnut actions page). Here a few benefits of using GitHub Actions instead of our own solution:

  • Eliminates custom TypeScript code and maintenance overhead
  • Fully supported by GitHub Actions
  • Provides predictable, consistent stale management
  • Easier to configure and update via YAML instead of code

Behavior

  • Marks issues/PRs as stale after 180 days of inactivity
  • Closes issues 7 days after being marked stale
  • Stale issues/PRs are labeled lifecycle/stale
  • Issues/PRs with the label lifecycle/frozen are exempt
  • Comment messages guide users on how to mark the issue/PRs as active
  • Automatically removes the stale label if activity resumes
  • Limits operations to 100 issues per run (can be adjusted as per needs)

Screenshot/screencast of this PR

This workflow is supposed to run as a GitHub action every night and post comments on issues that are inactive since some time:

Screenshot 2025-11-05 at 16 28 52

If even after marking issue/PR stale there is no activity. Issue is closed:

Screenshot 2025-11-07 at 15 05 21

What issues does this PR fix or reference?

This issue is part of #23627

Replace https://github.com/che-incubator/chestnut-lite with actions/stale

How to test this PR?

I've tested it on a personal repo.

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

… issues

Add GitHub action to automatically add comments on inactive issues and close
them after a week of activity.

Signed-off-by: Rohan Kumar <[email protected]>
@rohanKanojia rohanKanojia marked this pull request as ready for review November 7, 2025 10:05
@svor svor requested a review from ibuziuk November 11, 2025 16:48

on:
schedule:
- cron: "0 2 * * *" # Run every day at 02:00 UTC
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular preference for this timing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it was just an arbitrary value. We can change it to any value as per our needs.

@ibuziuk
Copy link
Member

ibuziuk commented Dec 2, 2025

for what it worth, looks like https://github.com/che-incubator/chestnut-lite flow is working again, so not sure we need to merge the PR

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.

2 participants