Add labels-to-remove-when-stale option

Open
#770 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #771 by @arnodirlam — closed without merging

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
github-actions, typescript
Domain
ci-cd, tooling

Research direction

Start by tracing the existing labels-to-remove-when-unstale option through the workflow configuration and its tests. Add the corresponding labels-to-remove-when-stale behavior for issues and pull requests, then verify that the label is removed when an item becomes stale rather than when it becomes unstale.

Written by the indexing model from the issue text.

Description

enhancement keep need eyes

The problem

We have a workflow where a deploy label triggers the deployment of a dedicated test environment on AWS via Terraform (like Heroku's "review apps"). When it's removed, the test environment is destroyed. We'd like to keep this flow, but automatically removed the label when the PR becomes stale. Right now, there's only an option to add/remove labels when a PR becomes unstale.

The solution

Please add an option labels-to-remove-when-stale.

Basically like the existing labels-to-remove-when-unstale but triggering when the issue/PR becomes stale (not when it becomes unstale).

Thank you very much for your great work! 🙏

Dominant language
TypeScript
Stars
1.7k
Forks
438
Avg merge
27d 8h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from actions/stale

All issues in actions/stale

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.