Skip to content

Feature request: Close draft PRs only #1162

Description

@BillyONeal

Description:
We use "draft" status as "contributor is working on this" and mark PRs draft again after reviewing and there are things that need edited. We only want to run the stale bot on draft PRs that have had no activity for 6 months. Unfortunately, there's only an exclude-if-draft option, not an include-if-draft-option.

Justification:
(see above)

Are you willing to submit a PR?
Possibly? I'm not super familiar with how to make such contributions though. I believe it should be fairly similar to https://github.com/actions/stale/blob/3f3b0175e8c66fb49b9a6d5a0cd1f8436d4c3ab6/src/classes/exempt-draft-pull-request.ts -- just invert the test.

Activity

  1. v-HarithaVattikuti commented on Jun 14, 2024

    @v-HarithaVattikuti
    Contributor

    Hello @BillyONeal
    We appreciate your suggestion for a new feature! We'll make sure to address it when we have the opportunity

  2. swoboda1337 commented on Oct 29, 2025

    @swoboda1337

    Any chance this feature will get implemented?

  3. katbyte commented on Jan 29, 2026

    @katbyte

    I also needed this, not the most familiar with typescript but opened #1314 that should do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions