Add triage policies for merge requests
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 4 Jul 2023 02:14:04 +0000 (12:14 +1000)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 4 Dec 2023 10:23:27 +0000 (19:23 +0900)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
.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..73db628
--- /dev/null
@@ -0,0 +1,26 @@
+# This is a set of bugbot commands for issues and merge requests - setting any of the
+# bugbot::foo labels will trigger gitlab-triage to run with this ruleset (well, the
+# one we have on the main branch at the time)
+#
+# Note that for adding labels, the label must first created in the project.
+resource_rules:
+  issues:
+    rules:
+      []
+  merge_requests:
+    rules:
+      - name: "Remind contributor of commit rules"
+        conditions:
+          labels:
+            - "bugbot::commit-rules"
+        actions:
+          remove_labels:
+            - "bugbot::commit-rules"
+          comment: |
+            Hi. Looks like the pipeline failed because one or more of the commits in this MR do not meet our requirements.
+            Most commonly this is a missing Signed-off-by, sometimes its the format of the commit message itself.
+            The "Test summary" above has the details.
+
+            Please see [our docs for commit messages](https://wayland.freedesktop.org/libinput/doc/latest/contributing.html#commit-messages)
+            and [our 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.