Skip to content

meta: broaden stale bot#62658

Open
avivkeller wants to merge 1 commit intonodejs:mainfrom
avivkeller:broaden-stale-bot
Open

meta: broaden stale bot#62658
avivkeller wants to merge 1 commit intonodejs:mainfrom
avivkeller:broaden-stale-bot

Conversation

@avivkeller
Copy link
Copy Markdown
Member

@avivkeller avivkeller commented Apr 9, 2026

As it currently stands, in order for an issue or PR to be marked as stale, the following conditions must be true:


(For issues)

  1. The issue must be labeled feature request
  2. The issue must not be labeled never-stale
  3. The issue must have had no activity for 210 days, with a warning posted at day 180.

(For PRs)

  1. The PR must not be labeled never-stale
  2. The PR must be older than 525600 minutes (1 year)
  3. The issue must have had no activity for 180 days, with a warning posted at day 150.

I propose we change this to cover more issues and pull requests, following this new configuration:

  1. The issue or PR must not be labeled never-stale. If an issue, this also includes confirmed-bug.
  2. The issue or PR must have no activity for 240 days, with a warning posted at day 210.

I understand this will likely incur a little bit of noise for the next run, but in the end, I think it'll help not just clean up the issue tracker, but draw attention to PRs that may have fallen through the cracks.

Copilot AI review requested due to automatic review settings April 9, 2026 19:18
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/actions
  • @nodejs/tsc

@nodejs-github-bot nodejs-github-bot added the meta Issues and PRs related to the general management of the project. label Apr 9, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Broadens and unifies the repository’s stale-item automation by expanding the stale workflow beyond feature-request-only issues and folding PR staleness handling into the same workflow, while removing now-obsolete feature-request automation documentation and a dedicated PR-stale workflow.

Changes:

  • Updates .github/workflows/stale.yml to run actions/stale for both issues and pull requests (and removes the “feature request only” targeting).
  • Removes the standalone PR stale workflow (close-stale-pull-requests.yml) in favor of the unified stale workflow.
  • Simplifies feature-request-management.md by removing the automated feature request handling section.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
doc/contributing/feature-request-management.md Removes documented automated feature-request stale/close process and related never-stale guidance.
.github/workflows/stale.yml Broadens stale bot to apply to both issues and PRs, updates messages, and adds PR configuration.
.github/workflows/close-stale-pull-requests.yml Deletes the older, separate PR stale-closure workflow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +38 to +39
days-before-stale: 210
days-before-close: 30
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

The PR description proposes marking items stale after 150 days of inactivity and closing after 240 days total, but this workflow is configured for days-before-stale: 180 and days-before-close: 30 (210 days total). Either update these values to match the intended 150/90 split (or 240 total), or adjust the PR description/messages so the implemented policy is accurate.

Copilot uses AI. Check for mistakes.
Comment on lines +40 to +42
stale-issue-label: stale
exempt-issue-labels: never-stale, confirmed-bug
close-issue-message: ${{ env.CLOSE_MESSAGE }}
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

Per the PR description, issues labeled confirmed-bug should also be exempt from staleness/closure, but exempt-issue-labels only includes never-stale. Consider adding confirmed-bug here (comma-separated) if that’s the intended behavior.

Copilot uses AI. Check for mistakes.
Comment on lines +10 to +21
CLOSE_MESSAGE: >
This issue has been automatically closed after 30 days of inactivity
following its stale status (no activity for a total of 240 days).
If this is still relevant, feel free to reopen it or leave a comment
with additional details so we can continue the discussion.
WARN_MESSAGE: >
This issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs.
If this is still relevant, please leave a comment or update it to keep it open.
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

CLOSE_MESSAGE/WARN_MESSAGE are written as "This issue…" but they are also used for PRs via close-pr-message/stale-pr-message, so the bot will post issue-specific wording on pull requests. Consider making the text neutral (e.g., "issue or pull request") or using separate env vars/messages for issues vs PRs.

Copilot uses AI. Check for mistakes.
Comment on lines 47 to 51
If you come across a feature request and want to add your
support for that feature please express your support
with the thumbs up emoji as a reaction. At some point in the
future we may use this as additional input in the automated
handling of feature requests.
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

This section still mentions using thumbs-up as input in the "automated handling of feature requests", but the PR removes the entire "Automated feature request handling" section below. Consider rewording to avoid referencing a process that is no longer documented here (or link to the new stale policy docs if applicable).

Copilot uses AI. Check for mistakes.
Comment on lines 38 to 45
## Triage of feature requests

There is no set process for triaging/handling feature requests.
Individual collaborators review issues marked as `feature request`
along with other issues and may or may not decide to
work on an implementation or advocate on their behalf.

If a collaborator believes a feature request must be implemented
they can add the `never-stale` label to the issue and it will
be excluded from the automated feature request handling
as outlined below.

## Expressing support for a feature request
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

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

This doc removed the guidance about using the never-stale label to exclude feature requests from automated closure, but the repo still uses never-stale as an exemption label in the stale workflow. Consider keeping a short note here (or linking to the relevant policy) so feature request authors know how to prevent automated stale/close when appropriate.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Issues and PRs related to the general management of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants