1a46c0ec8Sopenharmony_ci# This is a set of bugbot commands for issues and merge requests - setting any of the
2a46c0ec8Sopenharmony_ci# bugbot::foo labels will trigger gitlab-triage to run with this ruleset (well, the
3a46c0ec8Sopenharmony_ci# one we have on the main branch at the time)
4a46c0ec8Sopenharmony_ci#
5a46c0ec8Sopenharmony_ci# Note that for adding labels, the label must first created in the project.
6a46c0ec8Sopenharmony_ciresource_rules:
7a46c0ec8Sopenharmony_ci  issues:
8a46c0ec8Sopenharmony_ci    rules:
9a46c0ec8Sopenharmony_ci      - name: "Close kernel bugs"
10a46c0ec8Sopenharmony_ci        conditions:
11a46c0ec8Sopenharmony_ci          labels:
12a46c0ec8Sopenharmony_ci            - "bugbot::kernel"
13a46c0ec8Sopenharmony_ci        actions:
14a46c0ec8Sopenharmony_ci          labels:
15a46c0ec8Sopenharmony_ci            - "kernel"
16a46c0ec8Sopenharmony_ci          remove_labels:
17a46c0ec8Sopenharmony_ci            - "bugbot::kernel"
18a46c0ec8Sopenharmony_ci          comment: |
19a46c0ec8Sopenharmony_ci            This bug looks like a kernel issue and it cannot be fixed
20a46c0ec8Sopenharmony_ci            in libinput directly. I'm closing this bug but do feel free
21a46c0ec8Sopenharmony_ci            to continue discussing the issue here.
22a46c0ec8Sopenharmony_ci
23a46c0ec8Sopenharmony_ci            Kernel bugs are usually best sent to the [`linux-input` list](https://lore.kernel.org/linux-input/).
24a46c0ec8Sopenharmony_ci          status: "close"
25a46c0ec8Sopenharmony_ci      - name: "Request hid-recorder output"
26a46c0ec8Sopenharmony_ci        conditions:
27a46c0ec8Sopenharmony_ci          labels:
28a46c0ec8Sopenharmony_ci            - "bugbot::hid-recorder"
29a46c0ec8Sopenharmony_ci        actions:
30a46c0ec8Sopenharmony_ci          remove_labels:
31a46c0ec8Sopenharmony_ci            - "bugbot::hid-recorder"
32a46c0ec8Sopenharmony_ci          comment: |
33a46c0ec8Sopenharmony_ci            Looks like we may need some extra information that isn't yet available in this issue.
34a46c0ec8Sopenharmony_ci            Please **attach** (do not paste) the output of `hid-recorder` from [hid-tools](https://gitlab.freedesktop.org/libevdev/hid-tools/)
35a46c0ec8Sopenharmony_ci            for this device (run `sudo hid-recorder` without argument and it will let you pick the device).
36a46c0ec8Sopenharmony_ci            This should show the data the kernel receives from the device and may provide a hint on what's going on here.
37a46c0ec8Sopenharmony_ci      - name: "Request libinput record output"
38a46c0ec8Sopenharmony_ci        conditions:
39a46c0ec8Sopenharmony_ci          labels:
40a46c0ec8Sopenharmony_ci            - "bugbot::libinput-record"
41a46c0ec8Sopenharmony_ci        actions:
42a46c0ec8Sopenharmony_ci          remove_labels:
43a46c0ec8Sopenharmony_ci            - "bugbot::libinput-record"
44a46c0ec8Sopenharmony_ci          comment: |
45a46c0ec8Sopenharmony_ci            Looks like we may need some extra information. Please **attach** (do not paste) the full output
46a46c0ec8Sopenharmony_ci            of `libinput record` and `libinput debug-events --verbose` (if you haven't yet).
47a46c0ec8Sopenharmony_ci            The [documentation](https://wayland.freedesktop.org/libinput/doc/latest/tools.html#libinput-record-and-libinput-replay)
48a46c0ec8Sopenharmony_ci            has some information on what we're looking for to be able to triage bugs.
49a46c0ec8Sopenharmony_ci  merge_requests:
50a46c0ec8Sopenharmony_ci    rules:
51a46c0ec8Sopenharmony_ci      - name: "Remind contributor of commit rules"
52a46c0ec8Sopenharmony_ci        conditions:
53a46c0ec8Sopenharmony_ci          labels:
54a46c0ec8Sopenharmony_ci            - "bugbot::commit-rules"
55a46c0ec8Sopenharmony_ci        actions:
56a46c0ec8Sopenharmony_ci          remove_labels:
57a46c0ec8Sopenharmony_ci            - "bugbot::commit-rules"
58a46c0ec8Sopenharmony_ci          comment: |
59a46c0ec8Sopenharmony_ci            Hi. Looks like the pipeline failed because one or more of the commits in this MR do not meet our requirements.
60a46c0ec8Sopenharmony_ci            Most commonly this the format of the commit message itself. The "Test summary" above has the details.
61a46c0ec8Sopenharmony_ci
62a46c0ec8Sopenharmony_ci            Please see [our docs for commit messages](https://wayland.freedesktop.org/libinput/doc/latest/contributing.html#commit-messages)
63a46c0ec8Sopenharmony_ci            and [our docs for submitting code](https://wayland.freedesktop.org/libinput/doc/latest/contributing.html#submitting-code)
64a46c0ec8Sopenharmony_ci            that explain how to amend and force-push to this repo.
65