Skip to content

Remove the stale label when a PR is closed or merged #1303

@sarvekshayr

Description

@sarvekshayr

Description:
Remove the stale label when a PR is closed or merged

It would be helpful if actions/stale could automatically remove the stale label once a pull request is either merged or closed. A PR that has been merged or intentionally closed is no longer stale, so keeping the label is misleading.

Proposed configuration options could include something like:
remove-pr-stale-when-closed
remove-pr-stale-when-merged

This should ideally cover both cases:

  • PRs closed or merged manually by users.
  • PRs closed automatically by actions/stale workflow.

Currently, the stale label remains even after closure, and the action provides no way to clean it up without an additional workflow. Adding this feature would help keep repositories cleaner and labels more meaningful.

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