diff options
author | Thomas Haller <thaller@redhat.com> | 2023-05-05 16:04:55 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-05-08 11:04:50 +0200 |
commit | 0670f958fe1a55433beaa2f040c6823a0eaa0304 (patch) | |
tree | d4bc60a749d12df58c0e3b530aa37270cc236217 | |
parent | 1c904c7d2704de5b83c8aee3c6f33970c6125e4f (diff) | |
download | NetworkManager-0670f958fe1a55433beaa2f040c6823a0eaa0304.tar.gz |
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.
-rw-r--r-- | .triage-policies.yml | 52 |
1 files changed, 11 insertions, 41 deletions
diff --git a/.triage-policies.yml b/.triage-policies.yml index dfa23e2603..025333f403 100644 --- a/.triage-policies.yml +++ b/.triage-policies.yml @@ -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 |