]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
.triage-policies.yml: added [ci skip]
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 4 Feb 2019 14:10:19 +0000 (15:10 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 4 Feb 2019 14:12:59 +0000 (15:12 +0100)
This adds a set of policies regarding issues and merge requests
to be enforced by the gitlab-triage bot. That is:
 - Issues without any label for more than a month are marked
   with needs attention label
 - Issues with needinfo label are closed if they are not updated
   within a month
 - Merge requests marked as WIP with no update within 5 months
   are closed.

These rules are not enforced automatically; we have to schedule
a run of the gitlab-triage bot.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
.triage-policies.yml [new file with mode: 0644]

diff --git a/.triage-policies.yml b/.triage-policies.yml
new file mode 100644 (file)
index 0000000..9112070
--- /dev/null
@@ -0,0 +1,71 @@
+resource_rules:
+  issues:
+    rules:
+      - name: Triage policy
+        conditions:
+          date:
+            attribute: updated_at
+            condition: older_than
+            interval_type: days
+            interval: 30
+          state: opened
+          labels:
+            - No Label
+        limits:
+          most_recent: 50
+        actions:
+          labels:
+            - needs attention
+          comment: |
+            {{author}} This issue is unlabelled after 30 days. It needs attention.
+          summarize:
+            title: |
+              #{resource[:type].capitalize} require labels
+            item: |
+              - [ ] [{{title}}]({{web_url}}) {{labels}}
+            redact_confidential_resources: false
+            summary: |
+              The following issues require labels:
+
+              {{items}}
+
+              Please take care of them.
+
+              /label ~"needs attention"
+
+      - name: Close old needinfo policy
+        conditions:
+          date:
+            attribute: updated_at
+            condition: older_than
+            interval_type: months
+            interval: 1
+          state: opened
+          labels:
+            - needinfo
+        limits:
+          most_recent: 50
+        actions:
+          status: close
+          comment: |
+            {{author}} This issue was marked as needinfo with no update for long time. We are now closing it, but please re-open if it is still relevant.
+
+  merge_requests:
+    rules:
+      - name: Close old WIP policy
+        conditions:
+          title: WIP
+          date:
+            attribute: updated_at
+            condition: older_than
+            interval_type: months
+            interval: 4
+          state: opened
+          labels:
+            - No Label
+        limits:
+          most_recent: 50
+        actions:
+          status: close
+          comment: |
+            {{author}} This merge request is marked as work in progress with no update for very long time. We are now closing it, but please re-open if you are still interested in finishing this merge request.