mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-08-09 09:51:49 +08:00
Automatically close issues that have been open for more than 6 months without an assignee and without a linked merge request. Security-labeled issues are excluded. The motivation: - Issues tend to stay open indefinitely under the implicit assumption that someone will eventually pick them up. In practice this rarely happens. - The backlog keeps growing, making it harder to see what is actually being worked on. - The number of contributors who turn an issue into a merge request is very small relative to the number of issues filed. - The goal is to keep the issue tracker focused on work that is actively in progress, not as a wishlist. - Hopefully this encourages a more active contribution culture: instead of "I have reported it, someone will pick it up", reporters are nudged to either own the fix or accept that it may not happen. Resolves: #740 Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
77 lines
2.7 KiB
YAML
77 lines
2.7 KiB
YAML
resource_rules:
|
|
issues:
|
|
rules:
|
|
- name: Close stale unassigned issues
|
|
conditions:
|
|
state: opened
|
|
date:
|
|
attribute: updated_at
|
|
condition: older_than
|
|
interval_type: months
|
|
interval: 6
|
|
forbidden_labels:
|
|
- security
|
|
ruby: resource[:assignees].empty? && resource[:merge_requests_count].to_i == 0
|
|
actions:
|
|
status: close
|
|
comment: |
|
|
{{author}} This issue has been open for over 6 months with no assignee and no linked merge request. We are closing it automatically. If you are still interested in addressing it, please re-open and either assign it to yourself or link a merge request. If this is a security issue, please re-open it and notify a maintainer so it can be marked as such. This is an automated message.
|
|
|
|
- name: Close old needinfo policy
|
|
conditions:
|
|
date:
|
|
attribute: updated_at
|
|
condition: older_than
|
|
interval_type: months
|
|
interval: 1
|
|
state: opened
|
|
labels:
|
|
- needinfo
|
|
actions:
|
|
status: close
|
|
comment: |
|
|
{{author}} This issue was marked as needinfo with no update for long time. We are now closing it, but please add the necessary information and re-open if it is still relevant. This is an automated message.
|
|
|
|
merge_requests:
|
|
rules:
|
|
- name: Close old Draft policy
|
|
conditions:
|
|
draft: true
|
|
date:
|
|
attribute: updated_at
|
|
condition: older_than
|
|
interval_type: months
|
|
interval: 3
|
|
state: opened
|
|
labels:
|
|
- No Label
|
|
actions:
|
|
status: close
|
|
comment: |
|
|
{{author}} This merge request is marked as Draft with no update for a long time. We are now closing it, but please re-open if you are still interested in finishing this merge request. This is an automated message.
|
|
- name: Close old policy
|
|
conditions:
|
|
date:
|
|
attribute: updated_at
|
|
condition: older_than
|
|
interval_type: months
|
|
interval: 5
|
|
state: opened
|
|
actions:
|
|
status: close
|
|
comment: |
|
|
{{author}} This merge request is open for a long time without an update. We are now closing it, but please re-open if you are still interested in finishing this merge request. This is an automated message.
|
|
|
|
branches:
|
|
rules:
|
|
- name: tmp branch deletion policy
|
|
conditions:
|
|
date:
|
|
attribute: committed_date
|
|
condition: older_than
|
|
interval_type: months
|
|
interval: 6
|
|
name: ^tmp
|
|
actions:
|
|
delete: true
|