actions / stale

Marks issues and pull requests that have not had recent interaction
MIT License
1.34k stars 353 forks source link

Feat: Rotten Issues #1140

Open mviswanathsai opened 6 months ago

mviswanathsai commented 6 months ago

Description: This PR aims to add functionality that lets the user keep an issue in an intermediate state between stale and closed: rotten. This enables the user to do Kubernetes-like (a very mild like) issue life-cycle management. This is done in Kubernetes using the traige-robot.

As per the changes in this PR, after an issue is created:

  1. Stays as is till a value specified by days-before-stale.
  2. If no update is done to the issue for this time period, it is then moved to a Stale state.
  3. The issue stays labelled as Stale till a time period specified by days-before-rotten.
  4. If no update is done to the issue within this time period, it is then moved to a Rotten state.
  5. It stays Rotten till a time period specified by days-before-close.
  6. If no update is done to the issue within this time frame, then it is closed.

Note: "This bot" refers to the triage-robot.

    This bot triages issues according to the following rules:
    - After 90d of inactivity, `lifecycle/stale` is applied
    - After 30d of inactivity since `lifecycle/stale` was applied, `lifecycle/rotten` is applied
    - After 30d of inactivity since `lifecycle/rotten` was applied, the issue is closed

    This bot triages PRs according to the following rules:
    - After 90d of inactivity, `lifecycle/stale` is applied
    - After 30d of inactivity since `lifecycle/stale` was applied, `lifecycle/rotten` is applied
    - After 30d of inactivity since `lifecycle/rotten` was applied, the PR is closed

Related issue:

Check list:

cooljeanius commented 1 week ago

Description: This PR aims to add functionality that lets the user keep an issue in an intermediate state between stale and closed: rotten.

IMO the naming here is kind of counterintuitive; I'd expect stale to come first before rotten...

mviswanathsai commented 1 week ago

Yes, it is stale -> rotten -> closed.

cooljeanius commented 1 week ago

Yes, it is stale -> rotten -> closed.

ah, got it, sorry, I just misunderstood at first... never mind...