triage: only make stale issues/merge-requests with a label instead of autoclosing them

An issue/merge-requests only moves forward by a human putting effort in.
Wether the issue is open, closed, autoclosed or flagged with a "stale"
label doesn't matter in theory.

In practice, humans don't like getting their issues/merge-requests
autoclosed. Instead, add a "stale" label.

There was always a benefit of this automatic action. It tended to
generate some feedback and new action. Sometimes it even brought new
attention to the issue/merge-request to get it fixed. That is hopefully
also the case with the stale label.
This commit is contained in:
Thomas Haller 2023-05-05 16:04:55 +02:00
parent 1c904c7d27
commit 0670f958fe
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -3,47 +3,24 @@ host_url: https://gitlab.freedesktop.org
resource_rules:
issues:
rules:
- name: Close issues with no activity for 6 months
- name: Mark issue as stale with no activity for 4 months
conditions:
date:
attribute: updated_at
condition: older_than
interval_type: months
interval: 6
interval: 4
state: opened
forbidden_labels:
- stale
actions:
comment: |
This issue has been inactive for 6 months, closing automatically, please reopen if you think the issue is still relevant.
status: close
This issue has been inactive for 4 months and got stale. Contributions welcome to move it forward.
labels:
- auto-closed
- name: Close RFE with no activity for 12 months
conditions:
date:
attribute: updated_at
condition: older_than
interval_type: months
interval: 12
state: opened
labels:
- enhancement
actions:
comment: |
This enhancement issue has been inactive for 12 months, closing automatically, please reopen if you think the issue is still relevant.
status: close
labels:
- auto-closed
- name: Clear auto-closed label for open issues
conditions:
state: opened
labels:
- auto-closed
actions:
remove_labels:
- auto-closed
- stale
merge_requests:
rules:
- name: Close MRs with no activity after 2 month
- name: Mark merge-request as stale after no activity for 2 months
conditions:
date:
attribute: updated_at
@ -51,17 +28,10 @@ resource_rules:
interval_type: months
interval: 2
state: opened
forbidden_labels:
- stale
actions:
comment: |
This MR has been inactive for more than 2 months, closing automatically, please reopen if you think it is still relevant.
status: close
This merge-request has been inactive for 2 months and got stale. Work is necessary to move it forward.
labels:
- auto-closed
- name: Clear auto-closed label for open MRs
conditions:
state: opened
labels:
- auto-closed
actions:
remove_labels:
- auto-closed
- stale