From 4c202685d2a0cb0de8dc128822d785f13600d564 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Thu, 27 Feb 2025 15:03:45 +1000
Subject: [PATCH] triage-policies: add bugbot::suggest-mr-testing

This adds a (slightly different) blurb to issues or mrs to remind the
user that they can just download artifacts from a finished pipeline.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Part-of: <https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/merge_requests/190>
---
 .triage-policies.yml | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/.triage-policies.yml b/.triage-policies.yml
index 40af44e..fb5ff37 100644
--- a/.triage-policies.yml
+++ b/.triage-policies.yml
@@ -98,6 +98,22 @@ resource_rules:
             [the freedesktop.org wiki](https://gitlab.freedesktop.org/freedesktop/freedesktop/-/wikis/home)
             on how to get permissions to fork a project and file a merge request.
           status: "close"
+      - name: "Suggest MR testing"
+        conditions:
+          labels:
+            - "bugbot::suggest-mr-testing"
+        actions:
+          remove_labels:
+            - "bugbot::suggest-mr-testing"
+          comment: |
+            A merge request was linked above that may have a fix for this issue.
+
+            Once the pipelines in the merge request are all green you can download a pre-compiled artifact that can be tested
+            on your system. This is the easiest way to test a MR so please give it a try and report back
+            with any findings.
+
+            Please see our documentation for [Installing BPFs from our CI](https://libevdev.pages.freedesktop.org/udev-hid-bpf/installing-from-ci.html)
+            for details and instructions. You can of course compile it yourself too.
       - *close_needinfo
       - *remind_needinfo
       - *help_needed
@@ -139,6 +155,20 @@ resource_rules:
 
             Please see [libinput's docs for submitting code](https://wayland.freedesktop.org/libinput/doc/latest/contributing.html#submitting-code)
             that explain how to amend and force-push to this repo. These docs work well for udev-hid-bpf as well.
+      - name: "Suggest MR testing"
+        conditions:
+          labels:
+            - "bugbot::suggest-mr-testing"
+        actions:
+          remove_labels:
+            - "bugbot::suggest-mr-testing"
+          comment: |
+            Once the pipelines above are all green you can download a pre-compiled artifact that can be tested
+            on your system. This is the easiest way to test a MR so please give it a try and report back
+            with any findings.
+
+            Please see our documentation for [Installing BPFs from our CI](https://libevdev.pages.freedesktop.org/udev-hid-bpf/installing-from-ci.html)
+            for details and instructions. You can of course compile it yourself too.
       - *close_needinfo
       - *remind_needinfo
       - *help_needed
-- 
GitLab